FileDocCategorySizeDatePackage
JVMThreadInfoStats.javaAPI DocGlassfish v2 API5402Fri May 04 22:25:48 BST 2007com.sun.enterprise.admin.monitor.stats

JVMThreadInfoStats

public interface JVMThreadInfoStats implements javax.management.j2ee.statistics.Stats
A Stats interface, to expose the monitoring information about each individual thread in the the thread system of the JVM.
since
8.1

Fields Summary
Constructors Summary
Methods Summary
public javax.management.j2ee.statistics.CountStatisticgetBlockedCount()
Returns the number of times that this thread has been in the blocked state

return
CountStatistic the total number of times that the thread entered the BLOCKED state

public javax.management.j2ee.statistics.CountStatisticgetBlockedTime()
Returns the 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.

return
CountStatistic time elapsed in milliseconds, since the thread entered the BLOCKED state. Returns -1 if thread contention monitoring is disabled

public com.sun.enterprise.admin.monitor.stats.StringStatisticgetLockName()
Returns the string representation of the monitor lock that the thread is blocked to enter or waiting to be notified through the Object.wait method

return
StringStatistic the string representation of the monitor lock

public javax.management.j2ee.statistics.CountStatisticgetLockOwnerId()
Returns the Id of the thread which holds the monitor lock of an object on which this thread is blocking

return
CountStatistic Id of the thread holding the lock.

public com.sun.enterprise.admin.monitor.stats.StringStatisticgetLockOwnerName()
Returns the name of the thread that holds the monitor lock of the object this thread is blocking on

return
StringStatistic name of the thread holding the monitor lock.

public com.sun.enterprise.admin.monitor.stats.StringStatisticgetStackTrace()
Returns the stacktrace associated with this thread

public javax.management.j2ee.statistics.CountStatisticgetThreadId()
Returns the Id of the thread

return
CountStatistic Id of the thread

public com.sun.enterprise.admin.monitor.stats.StringStatisticgetThreadName()
Returns the name of the thread

return
StringStatistic name of the thread

public com.sun.enterprise.admin.monitor.stats.StringStatisticgetThreadState()
Returns the state of the thread

return
StringStatistic Thread state

public javax.management.j2ee.statistics.CountStatisticgetWaitedCount()
Returns the number of times that the thread has been in WAITING or TIMED_WAITING states

return
CountStatistic total number of times that the thread was in WAITING or TIMED_WAITING states

public javax.management.j2ee.statistics.CountStatisticgetWaitedTime()
Returns the elapsed time(in milliseconds) that the thread has been in the waiting state.

returns
CountStatistic elapsed time in milliseconds that the thread has been in a WAITING state. Returns -1 if thread contention monitoring is disabled.