Class ThreadDataImpl
java.lang.Object
com.ibm.java.diagnostics.healthcenter.api.impl.TimeDataImpl
com.ibm.java.diagnostics.healthcenter.api.threads.impl.ThreadDataImpl
- All Implemented Interfaces:
ThreadData,TimeData
-
Field Summary
Fields inherited from class com.ibm.java.diagnostics.healthcenter.api.impl.TimeDataImpl
eventTime -
Constructor Summary
ConstructorsConstructorDescriptionThreadDataImpl(double eventTime, String name, Thread.State state, String[] ownedMonitors, String contendedMonitor, String contendedMonitorOwner, StackTraceElement[] stackLines) ThreadDataImpl(double eventTime, String name, Thread.State state, String[] ownedMonitors, String contendedMonitor, String contendedMonitorOwner, StackTraceElement[] stackLines, MonitorInfo[] monitorInfos, LockInfo[] lockInfos) ThreadDataImpl(double eventTime, String name, Thread.State state, String[] ownedMonitors, String contendedMonitor, String contendedMonitorOwner, StackTraceElement[] stackLines, MonitorInfo[] monitorInfos, LockInfo[] lockInfos, long threadID) -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the object whose monitor this thread is waiting to enter or regain.Returns the name of the thread that has the lock on the monitor that this thread is waiting to enter or regain.Returns an array which contains information about the object monitors currently locked by this thread.LockInfo[]Returns an array of synchronizer objects that are currently owned (exclusively) by this thread.getName()Returns the name of this thread.String[]Returns the monitors that are owned by this thread.Returns the stack trace of this thread.getState()Returns the state of this thread.longMethods inherited from class com.ibm.java.diagnostics.healthcenter.api.impl.TimeDataImpl
getTime
-
Constructor Details
-
ThreadDataImpl
public ThreadDataImpl(double eventTime, String name, Thread.State state, String[] ownedMonitors, String contendedMonitor, String contendedMonitorOwner, StackTraceElement[] stackLines) -
ThreadDataImpl
public ThreadDataImpl(double eventTime, String name, Thread.State state, String[] ownedMonitors, String contendedMonitor, String contendedMonitorOwner, StackTraceElement[] stackLines, MonitorInfo[] monitorInfos, LockInfo[] lockInfos) -
ThreadDataImpl
public ThreadDataImpl(double eventTime, String name, Thread.State state, String[] ownedMonitors, String contendedMonitor, String contendedMonitorOwner, StackTraceElement[] stackLines, MonitorInfo[] monitorInfos, LockInfo[] lockInfos, long threadID)
-
-
Method Details
-
getContendedMonitor
Description copied from interface:ThreadDataReturns the name of the object whose monitor this thread is waiting to enter or regain.- Specified by:
getContendedMonitorin interfaceThreadData- Returns:
- a String representation of the contended monitor, or
nullif this thread is not waiting for a monitor.
-
getName
Description copied from interface:ThreadDataReturns the name of this thread.- Specified by:
getNamein interfaceThreadData- Returns:
- the name of this thread.
-
getThreadID
public long getThreadID() -
getOwnedMonitors
Description copied from interface:ThreadDataReturns the monitors that are owned by this thread.- Specified by:
getOwnedMonitorsin interfaceThreadData- Returns:
- a String array representing the names of monitors that are owned by this thread, or an empty String array if this thread does not own any monitors.
-
getState
Description copied from interface:ThreadDataReturns the state of this thread. For example, the thread could be blocked or waiting.- Specified by:
getStatein interfaceThreadData- Returns:
- the state of this thread.
-
getContendedMonitorOwner
Description copied from interface:ThreadDataReturns the name of the thread that has the lock on the monitor that this thread is waiting to enter or regain.- Specified by:
getContendedMonitorOwnerin interfaceThreadData- Returns:
- the name of the thread that has the lock.
-
getStackTrace
Description copied from interface:ThreadDataReturns the stack trace of this thread. The first element of the array represents the top of the stack and the last element of the array represents the bottom of the stack.- Specified by:
getStackTracein interfaceThreadData- Returns:
- the stack trace of this thread.
-
getLockedMonitors
Description copied from interface:ThreadDataReturns an array which contains information about the object monitors currently locked by this thread.- Specified by:
getLockedMonitorsin interfaceThreadData- Returns:
- the locked object monitors
-
getLockedSynchronizers
Description copied from interface:ThreadDataReturns an array of synchronizer objects that are currently owned (exclusively) by this thread.- Specified by:
getLockedSynchronizersin interfaceThreadData- Returns:
- Array of synchronizers
-