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

public class ThreadDataImpl extends TimeDataImpl implements ThreadData
  • Constructor Details

  • Method Details

    • getContendedMonitor

      public String getContendedMonitor()
      Description copied from interface: ThreadData
      Returns the name of the object whose monitor this thread is waiting to enter or regain.
      Specified by:
      getContendedMonitor in interface ThreadData
      Returns:
      a String representation of the contended monitor, or null if this thread is not waiting for a monitor.
    • getName

      public String getName()
      Description copied from interface: ThreadData
      Returns the name of this thread.
      Specified by:
      getName in interface ThreadData
      Returns:
      the name of this thread.
    • getThreadID

      public long getThreadID()
    • getOwnedMonitors

      public String[] getOwnedMonitors()
      Description copied from interface: ThreadData
      Returns the monitors that are owned by this thread.
      Specified by:
      getOwnedMonitors in interface ThreadData
      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

      public Thread.State getState()
      Description copied from interface: ThreadData
      Returns the state of this thread. For example, the thread could be blocked or waiting.
      Specified by:
      getState in interface ThreadData
      Returns:
      the state of this thread.
    • getContendedMonitorOwner

      public String getContendedMonitorOwner()
      Description copied from interface: ThreadData
      Returns the name of the thread that has the lock on the monitor that this thread is waiting to enter or regain.
      Specified by:
      getContendedMonitorOwner in interface ThreadData
      Returns:
      the name of the thread that has the lock.
    • getStackTrace

      public StackTraceElement[] getStackTrace()
      Description copied from interface: ThreadData
      Returns 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:
      getStackTrace in interface ThreadData
      Returns:
      the stack trace of this thread.
    • getLockedMonitors

      public MonitorInfo[] getLockedMonitors()
      Description copied from interface: ThreadData
      Returns an array which contains information about the object monitors currently locked by this thread.
      Specified by:
      getLockedMonitors in interface ThreadData
      Returns:
      the locked object monitors
    • getLockedSynchronizers

      public LockInfo[] getLockedSynchronizers()
      Description copied from interface: ThreadData
      Returns an array of synchronizer objects that are currently owned (exclusively) by this thread.
      Specified by:
      getLockedSynchronizers in interface ThreadData
      Returns:
      Array of synchronizers