Interface JVMThreadInfoStats
- All Superinterfaces:
Stats
A Stats interface, to expose the monitoring information
about each individual thread in the the thread system of the JVM.
- Since:
- 8.1
-
Method Summary
Modifier and TypeMethodDescriptionReturns the number of times that this thread has been in the blocked stateReturns 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.Returns the string representation of the monitor lock that the thread is blocked to enter or waiting to be notified through the Object.wait methodReturns the Id of the thread which holds the monitor lock of an object on which this thread is blockingReturns the name of the thread that holds the monitor lock of the object this thread is blocking onReturns the stacktrace associated with this threadReturns the Id of the threadReturns the name of the threadReturns the state of the threadReturns the number of times that the thread has been in WAITING or TIMED_WAITING statesReturns the elapsed time(in milliseconds) that the thread has been in the waiting state.Methods inherited from interface org.glassfish.j2ee.statistics.Stats
getStatistic, getStatisticNames, getStatistics
-
Method Details
-
getThreadId
CountStatistic getThreadId()Returns the Id of the thread- Returns:
- CountStatistic Id of the thread
-
getThreadName
StringStatistic getThreadName()Returns the name of the thread- Returns:
- StringStatistic name of the thread
-
getThreadState
StringStatistic getThreadState()Returns the state of the thread- Returns:
- StringStatistic Thread state
-
getBlockedTime
CountStatistic getBlockedTime()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.- Returns:
- CountStatistic time elapsed in milliseconds, since the thread entered the BLOCKED state. Returns -1 if thread contention monitoring is disabled
-
getBlockedCount
CountStatistic getBlockedCount()Returns the number of times that this thread has been in the blocked state- Returns:
- CountStatistic the total number of times that the thread entered the BLOCKED state
-
getWaitedTime
CountStatistic getWaitedTime()Returns the elapsed time(in milliseconds) that the thread has been in the waiting state. -
getWaitedCount
CountStatistic getWaitedCount()Returns the number of times that the thread has been in WAITING or TIMED_WAITING states- Returns:
- CountStatistic total number of times that the thread was in WAITING or TIMED_WAITING states
-
getLockName
StringStatistic getLockName()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- Returns:
- StringStatistic the string representation of the monitor lock
-
getLockOwnerId
CountStatistic getLockOwnerId()Returns the Id of the thread which holds the monitor lock of an object on which this thread is blocking- Returns:
- CountStatistic Id of the thread holding the lock.
-
getLockOwnerName
StringStatistic getLockOwnerName()Returns the name of the thread that holds the monitor lock of the object this thread is blocking on- Returns:
- StringStatistic name of the thread holding the monitor lock.
-
getStackTrace
StringStatistic getStackTrace()Returns the stacktrace associated with this thread
-