com.ibm.java.diagnostics.healthcenter.api.threads

Interface ThreadData

  • All Superinterfaces:
    TimeData


    public interface ThreadData
    extends TimeData
    This class represents a particular thread within the monitored application.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      java.lang.String getContendedMonitor()
      Returns the name of the object whose monitor this thread is waiting to enter or regain.
      java.lang.String getContendedMonitorOwner()
      Returns the name of the thread that has the lock on the monitor that this thread is waiting to enter or regain.
      java.lang.management.MonitorInfo[] getLockedMonitors()
      Returns an array which contains information about the object monitors currently locked by this thread.
      java.lang.management.LockInfo[] getLockedSynchronizers()
      Returns an array of synchronizer objects that are currently owned (exclusively) by this thread.
      java.lang.String getName()
      Returns the name of this thread.
      java.lang.String[] getOwnedMonitors()
      Returns the monitors that are owned by this thread.
      java.lang.StackTraceElement[] getStackTrace()
      Returns the stack trace of this thread.
      java.lang.Thread.State getState()
      Returns the state of this thread.
      • Methods inherited from interface com.ibm.java.diagnostics.healthcenter.api.TimeData

        getTime
    • Method Detail

      • getName

        java.lang.String getName()
        Returns the name of this thread.
        Returns:
        the name of this thread.
      • getState

        java.lang.Thread.State getState()
        Returns the state of this thread. For example, the thread could be blocked or waiting.
        Returns:
        the state of this thread.
      • getOwnedMonitors

        java.lang.String[] getOwnedMonitors()
        Returns the monitors that are owned by this thread.
        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.
      • getContendedMonitor

        java.lang.String getContendedMonitor()
        Returns the name of the object whose monitor this thread is waiting to enter or regain.
        Returns:
        a String representation of the contended monitor, or null if this thread is not waiting for a monitor.
      • getContendedMonitorOwner

        java.lang.String getContendedMonitorOwner()
        Returns the name of the thread that has the lock on the monitor that this thread is waiting to enter or regain.
        Returns:
        the name of the thread that has the lock.
      • getStackTrace

        java.lang.StackTraceElement[] getStackTrace()
        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.
        Returns:
        the stack trace of this thread.
      • getLockedMonitors

        java.lang.management.MonitorInfo[] getLockedMonitors()
        Returns an array which contains information about the object monitors currently locked by this thread.
        Returns:
        the locked object monitors
      • getLockedSynchronizers

        java.lang.management.LockInfo[] getLockedSynchronizers()
        Returns an array of synchronizer objects that are currently owned (exclusively) by this thread.
        Returns:
        Array of synchronizers
© Copyright 2012, 2016 IBM Corporation.