java.lang.Object
com.ibm.java.diagnostics.healthcenter.api.threads.impl.ThreadEventObject
All Implemented Interfaces:
BaseEvent, ThreadEvent

public class ThreadEventObject extends Object implements ThreadEvent
  • Constructor Details

    • ThreadEventObject

      public ThreadEventObject(long eventTime, String threadName)
  • Method Details

    • getEventTime

      public long getEventTime()
      Specified by:
      getEventTime in interface BaseEvent
      Returns:
      the time the event took place in milliseconds since epoch
    • getThreadName

      public String getThreadName()
      Description copied from interface: ThreadEvent
      Gets the name of the thread
      Specified by:
      getThreadName in interface ThreadEvent
      Returns:
      Class name
    • getThreadID

      public long getThreadID()
      Specified by:
      getThreadID in interface ThreadEvent
      Returns:
      id of the thread
    • getState

      public String getState()
      Specified by:
      getState in interface ThreadEvent
      Returns:
      the current state of the thread
    • getNumMonitorsOwned

      public int getNumMonitorsOwned()
      Specified by:
      getNumMonitorsOwned in interface ThreadEvent
      Returns:
      the number of monitors owned
    • getOwnedMonitors

      public MonitorInfo[] getOwnedMonitors()
      Specified by:
      getOwnedMonitors in interface ThreadEvent
      Returns:
      array of MonitorInfo objects
    • getLocksOwned

      public LockInfo[] getLocksOwned()
      Specified by:
      getLocksOwned in interface ThreadEvent
      Returns:
      array of LockInfo objects
    • getContendedMonitor

      public String getContendedMonitor()
      Specified by:
      getContendedMonitor in interface ThreadEvent
      Returns:
      Name of monitor blocking this thread
    • getThreadCallStack

      public StackTraceElement[] getThreadCallStack()
      Specified by:
      getThreadCallStack in interface ThreadEvent
      Returns:
      array of the call stack creating this thread
    • setEventTime

      public void setEventTime(long eventTime)
    • setThreadName

      public void setThreadName(String threadName)
    • setState

      public void setState(String state)
    • setThreadId

      public void setThreadId(long threadId)
    • setNumMonitorsOwned

      public void setNumMonitorsOwned(int numMonitorsOwned)
    • setOwnedMonitors

      public void setOwnedMonitors(MonitorInfo[] ownedMonitors)
    • setLocksOwned

      public void setLocksOwned(LockInfo[] locksOwned)
    • setThreadCallStack

      public void setThreadCallStack(StackTraceElement[] threadCallStack)
    • setContendedMonitor

      public void setContendedMonitor(String contendedMonitor)