API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.lang.management. ThreadInfo View Source
Author(s)
Mandy Chung
Since
1.5
Version
1.25, 05/05/06
Serial
Hierarchy
 Object
      ThreadInfo
Implements
Subclasses
Description
public class ThreadInfo
  Thread information.
Constructors
private ThreadInfo (CompositeData cd)
private ThreadInfo (Thread t, int state, Object lockObj, Thread lockOwner, long blockedCount, long blockedTime, long waitedCount, long waitedTime, StackTraceElement stackTrace)
  Constructor of ThreadInfo created by the JVM
private ThreadInfo (Thread t, int state, Object lockObj, Thread lockOwner, long blockedCount, long blockedTime, long waitedCount, long waitedTime, StackTraceElement stackTrace, Object monitors, int[] stackDepths, Object synchronizers)
Methods
Hide/Show inherited methods
publicstatic ThreadInfo from (CompositeData cd)
  Returns a ThreadInfo object represented by the given CompositeData.
public long getBlockedCount ()
  Returns the total number of times that the thread associated with this ThreadInfo blocked to enter or reenter a monitor.
public long getBlockedTime ()
  Returns the approximate accumulated elapsed time (in milliseconds) that the thread associated with this ThreadInfo has blocked to enter or reenter a monitor since thread contention monitoring is enabled.
public MonitorInfo getLockedMonitors ()
  Returns an array of MonitorInfo objects, each of which represents an object monitor currently locked by the thread associated with this ThreadInfo.
public LockInfo getLockedSynchronizers ()
  Returns an array of LockInfo objects, each of which represents an ownable synchronizer currently locked by the thread associated with this ThreadInfo.
public LockInfo getLockInfo ()
  Returns the LockInfo of an object for which the thread associated with this ThreadInfo is blocked waiting.
public String getLockName ()
  Returns the string representation of an object for which the thread associated with this ThreadInfo is blocked waiting.
public long getLockOwnerId ()
  Returns the ID of the thread which owns the object for which the thread associated with this ThreadInfo is blocked waiting.
public String getLockOwnerName ()
  Returns the name of the thread which owns the object for which the thread associated with this ThreadInfo is blocked waiting.
public StackTraceElement getStackTrace ()
  Returns the stack trace of the thread associated with this ThreadInfo.
public long getThreadId ()
  Returns the ID of the thread associated with this ThreadInfo.
public String getThreadName ()
  Returns the name of the thread associated with this ThreadInfo.
public State getThreadState ()
  Returns the state of the thread associated with this ThreadInfo.
public long getWaitedCount ()
  Returns the total number of times that the thread associated with this ThreadInfo waited for notification.
public long getWaitedTime ()
  Returns the approximate accumulated elapsed time (in milliseconds) that the thread associated with this ThreadInfo has waited for notification since thread contention monitoring is enabled.
public boolean isInNative ()
  Tests if the thread associated with this ThreadInfo is executing native code via the Java Native Interface (JNI).
public boolean isSuspended ()
  Tests if the thread associated with this ThreadInfo is suspended.
public String toString ()
  Returns a string representation of this thread info.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar