Package org.glassfish.admin.monitor.jvm
Class JVMThreadInfoStatsProvider
- java.lang.Object
-
- org.glassfish.admin.monitor.jvm.JVMThreadInfoStatsProvider
-
@AMXMetadata(type="threadinfo-mon", group="monitoring") @ManagedObject @Description("JVM Thread Info Statistics") public class JVMThreadInfoStatsProvider extends ObjectClass providing the MBean for JVM class loading statisticsThe MBean will be of the format
aamx:pp=/mon/server-mon[server],type=threadinfo-mon,name=jvm/thread-system/thread-1and can be enabled by turning the Jvm monitoring level in the admin console to HIGH- Since:
- v2
-
-
Constructor Summary
Constructors Constructor Description JVMThreadInfoStatsProvider(ThreadInfo info)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.glassfish.external.statistics.CountStatisticgetBlockedCount()Gets the total number of times that the thread associated with this ThreadInfo blocked to enter or reenter a monitororg.glassfish.external.statistics.CountStatisticgetBlockedTime()Gets he approximate accumulated elapsed time that the thread associated with this ThreadInfo has blocked to enter or reenter a monitor since thread contention monitoring is enabledorg.glassfish.external.statistics.StringStatisticgetLockName()Gets the string representation of an object for which the thread associated with this ThreadInfo is blocked waitingorg.glassfish.external.statistics.CountStatisticgetLockOwnerId()Gets the ID of the thread which owns the object for which the thread associated with this ThreadInfo is blocked waitingorg.glassfish.external.statistics.StringStatisticgetLockOwnerName()Gets the name of the thread which owns the object for which the thread associated with this ThreadInfo is blocked waitingorg.glassfish.external.statistics.StringStatisticgetStackTrace()Gets the the stack trace of the thread associated with thisThreadInfoorg.glassfish.external.statistics.CountStatisticgetThreadId()Gets the ID of the thread associated with thisThreadInfoorg.glassfish.external.statistics.StringStatisticgetThreadName()Gets the name of the thread associated with thisThreadInfoorg.glassfish.external.statistics.StringStatisticgetThreadState()Gets the state of the thread associated with thisThreadInfoorg.glassfish.external.statistics.CountStatisticgetWaitedCount()Gets the total number of times that the thread associated with thisThreadInfowaited for notificationorg.glassfish.external.statistics.CountStatisticgetWaitedTime()Gets the approximate accumulated elapsed time that the thread associated with thisThreadInfohas waited for notification since thread contention monitoring is enabled
-
-
-
Constructor Detail
-
JVMThreadInfoStatsProvider
public JVMThreadInfoStatsProvider(ThreadInfo info)
-
-
Method Detail
-
getBlockedCount
@ManagedAttribute(id="blockedcount") @Description("Returns the total number of times that the thread associated with this ThreadInfo blocked to enter or reenter a monitor") public org.glassfish.external.statistics.CountStatistic getBlockedCount()Gets the total number of times that the thread associated with this ThreadInfo blocked to enter or reenter a monitor- Returns:
- a
CountStatisticwith the number of times
-
getBlockedTime
@ManagedAttribute(id="blockedtime") @Description("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 org.glassfish.external.statistics.CountStatistic getBlockedTime()Gets he approximate accumulated elapsed time that the thread associated with this ThreadInfo has blocked to enter or reenter a monitor since thread contention monitoring is enabled- Returns:
- a
CountStatisticwith blocked time in milliseconds
-
getLockName
@ManagedAttribute(id="lockname") @Description("Returns the string representation of an object for which the thread associated with this ThreadInfo is blocked waiting") public org.glassfish.external.statistics.StringStatistic getLockName()Gets the string representation of an object for which the thread associated with this ThreadInfo is blocked waiting- Returns:
- a
StringStatisticwith the object's representation
-
getLockOwnerId
@ManagedAttribute(id="lockownerid") @Description("Returns the ID of the thread which owns the object for which the thread associated with this ThreadInfo is blocked waiting") public org.glassfish.external.statistics.CountStatistic getLockOwnerId()Gets the ID of the thread which owns the object for which the thread associated with this ThreadInfo is blocked waiting- Returns:
- a
CountStatisticwith the thread ID
-
getLockOwnerName
@ManagedAttribute(id="lockownername") @Description("Returns the name of the thread which owns the object for which the thread associated with this ThreadInfo is blocked waiting") public org.glassfish.external.statistics.StringStatistic getLockOwnerName()Gets the name of the thread which owns the object for which the thread associated with this ThreadInfo is blocked waiting- Returns:
- a
StringStatisticwith the name of the lock's owner
-
getStackTrace
@ManagedAttribute(id="stacktrace") @Description("Returns the stack trace of the thread associated with this ThreadInfo") public org.glassfish.external.statistics.StringStatistic getStackTrace()Gets the the stack trace of the thread associated with thisThreadInfo- Returns:
- a
StringStatisticwith a command separated list of the stack trace elements
-
getThreadId
@ManagedAttribute(id="threadid") @Description("Returns the ID of the thread associated with this ThreadInfo") public org.glassfish.external.statistics.CountStatistic getThreadId()Gets the ID of the thread associated with thisThreadInfo- Returns:
- a
CountStatisticwith the thread id
-
getThreadName
@ManagedAttribute(id="threadname") @Description("Returns the name of the thread associated with this ThreadInfo") public org.glassfish.external.statistics.StringStatistic getThreadName()Gets the name of the thread associated with thisThreadInfo- Returns:
- a
StringStatisticwith the name of this thread
-
getThreadState
@ManagedAttribute(id="threadstate") @Description("Returns the state of the thread associated with this ThreadInfo") public org.glassfish.external.statistics.StringStatistic getThreadState()Gets the state of the thread associated with thisThreadInfo- Returns:
- a
StringStatisticwith the state of the thread
-
getWaitedCount
@ManagedAttribute(id="waitedcount") @Description("Returns the total number of times that the thread associated with this ThreadInfo waited for notification") public org.glassfish.external.statistics.CountStatistic getWaitedCount()Gets the total number of times that the thread associated with thisThreadInfowaited for notification- Returns:
- a
CountStatisticwith the number of times
-
getWaitedTime
@ManagedAttribute(id="waitedtime") @Description("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 org.glassfish.external.statistics.CountStatistic getWaitedTime()Gets the approximate accumulated elapsed time that the thread associated with thisThreadInfohas waited for notification since thread contention monitoring is enabled- Returns:
- a
CountStatisticwith the time in milliseconds
-
-