Class ThreadEventObject
java.lang.Object
com.ibm.java.diagnostics.healthcenter.api.threads.impl.ThreadEventObject
- All Implemented Interfaces:
BaseEvent,ThreadEvent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongLockInfo[]intgetState()longGets the name of the threadvoidsetContendedMonitor(String contendedMonitor) voidsetEventTime(long eventTime) voidsetLocksOwned(LockInfo[] locksOwned) voidsetNumMonitorsOwned(int numMonitorsOwned) voidsetOwnedMonitors(MonitorInfo[] ownedMonitors) voidvoidsetThreadCallStack(StackTraceElement[] threadCallStack) voidsetThreadId(long threadId) voidsetThreadName(String threadName)
-
Constructor Details
-
ThreadEventObject
-
-
Method Details
-
getEventTime
public long getEventTime()- Specified by:
getEventTimein interfaceBaseEvent- Returns:
- the time the event took place in milliseconds since epoch
-
getThreadName
Description copied from interface:ThreadEventGets the name of the thread- Specified by:
getThreadNamein interfaceThreadEvent- Returns:
- Class name
-
getThreadID
public long getThreadID()- Specified by:
getThreadIDin interfaceThreadEvent- Returns:
- id of the thread
-
getState
- Specified by:
getStatein interfaceThreadEvent- Returns:
- the current state of the thread
-
getNumMonitorsOwned
public int getNumMonitorsOwned()- Specified by:
getNumMonitorsOwnedin interfaceThreadEvent- Returns:
- the number of monitors owned
-
getOwnedMonitors
- Specified by:
getOwnedMonitorsin interfaceThreadEvent- Returns:
- array of MonitorInfo objects
-
getLocksOwned
- Specified by:
getLocksOwnedin interfaceThreadEvent- Returns:
- array of LockInfo objects
-
getContendedMonitor
- Specified by:
getContendedMonitorin interfaceThreadEvent- Returns:
- Name of monitor blocking this thread
-
getThreadCallStack
- Specified by:
getThreadCallStackin interfaceThreadEvent- Returns:
- array of the call stack creating this thread
-
setEventTime
public void setEventTime(long eventTime) -
setThreadName
-
setState
-
setThreadId
public void setThreadId(long threadId) -
setNumMonitorsOwned
public void setNumMonitorsOwned(int numMonitorsOwned) -
setOwnedMonitors
-
setLocksOwned
-
setThreadCallStack
-
setContendedMonitor
-