Copyright @ 2001 SAP. All Rights Reserved.

com.sap.util.monitor.jarm
Class ApplThreadOverview

java.lang.Object
  |
  +--com.sap.util.monitor.jarm.ApplThreadOverview
All Implemented Interfaces:
java.util.Comparator, java.io.Serializable

public class ApplThreadOverview
extends java.lang.Object
implements java.io.Serializable, java.util.Comparator

Structure contains the data to be shown for the application thread snapshot.

 One instance contains the data of one thread.
 Instances exists only for threads which have already processed
 and monitored requests:
 - no information about other threads in the system are given
 - only application specific information is returned +  the thread handle
 - via the thread handle system specific thread information could be fetched
 
The fields are public, to allow faster access on them. Unused String fields could be null or space. Timestamps are in 'ms' as returned by System.currentTimeMillis(). Time (duration) is in 'ms', data in bytes.

See Also:
Serialized Form

Field Summary
 java.lang.String action
          currently processed action
 boolean active
          active flag;
true <-> Thread is currently active for a request
 java.lang.String compName
          name of currently processed component
 long compTime
          elapsed time already spent for the component
 long firstTaskTS
          start timestamp of first request/task in this thread
 java.lang.Thread myThread
          corresponding thread object
 java.lang.String reqName
          name of request
 long reqTime
          elapsed time already spent for the request
 long sumTaskTime
          elapsed time which was used by requests in this thread
 java.lang.String taskName
          name of thread specific task;
in the current implementation there are no async. tasks
-> reqName = taskName
 long taskTime
          elapsed time already spent for the task;
(now: reqTime = taskTime)
 java.lang.String threadName
          name of thread
 java.lang.String userName
          user id
 
Constructor Summary
ApplThreadOverview()
           
 
Method Summary
 int compare(java.lang.Object obj1, java.lang.Object obj2)
           
 boolean equals(java.lang.Object obj)
          implementation of equals method of Comparator interface thread name is used for comparison; there is no need to call the method externally; it is public because of the Comparator interface
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myThread

public java.lang.Thread myThread
corresponding thread object

threadName

public java.lang.String threadName
name of thread

firstTaskTS

public long firstTaskTS
start timestamp of first request/task in this thread

sumTaskTime

public long sumTaskTime
elapsed time which was used by requests in this thread

active

public boolean active
active flag;
true <-> Thread is currently active for a request

userName

public java.lang.String userName
user id

reqName

public java.lang.String reqName
name of request

taskName

public java.lang.String taskName
name of thread specific task;
in the current implementation there are no async. tasks
-> reqName = taskName

compName

public java.lang.String compName
name of currently processed component

action

public java.lang.String action
currently processed action

reqTime

public long reqTime
elapsed time already spent for the request

taskTime

public long taskTime
elapsed time already spent for the task;
(now: reqTime = taskTime)

compTime

public long compTime
elapsed time already spent for the component
Constructor Detail

ApplThreadOverview

public ApplThreadOverview()
Method Detail

compare

public int compare(java.lang.Object obj1,
                   java.lang.Object obj2)
Specified by:
compare in interface java.util.Comparator

equals

public boolean equals(java.lang.Object obj)
implementation of equals method of Comparator interface thread name is used for comparison; there is no need to call the method externally; it is public because of the Comparator interface
Specified by:
equals in interface java.util.Comparator
Overrides:
equals in class java.lang.Object
Parameters:
obj - ApplThreadOverview object to compare
Returns:
true <-> this = obj

Copyright @ 2001 SAP. All Rights Reserved.