com.sun.enterprise.admin.monitor.stats
Interface JVMThreadStats

All Superinterfaces:
Stats

public interface JVMThreadStats
extends Stats

A Stats interface, to expose the monitoring information about the thread system of the JVM.

Since:
8.1

Method Summary
 StringStatistic getAllThreadIds()
          Returns a comma separated list of all live thread ids
 CountStatistic getCurrentThreadCPUTime()
          Returns the CPU time for the current thread in nanoseconds, if CPU time measurement is enabled.
 CountStatistic getDaemonThreadCount()
          Returns the current number of live daemon threads
 StringStatistic getMonitorDeadlockedThreads()
          Returns a comma separated list of thread ids that are monitor deadlocked
 CountStatistic getPeakThreadCount()
          Returns the peak live thread count, since the JVM started or the peak was reset
 CountStatistic getThreadCount()
          Returns the current number of live daemon and non-daemon threads
 CountStatistic getTotalStartedThreadCount()
          Returns the total number of threads created and also started since the JVM started
 
Methods inherited from interface org.glassfish.j2ee.statistics.Stats
getStatistic, getStatisticNames, getStatistics
 

Method Detail

getThreadCount

CountStatistic getThreadCount()
Returns the current number of live daemon and non-daemon threads

Returns:
CountStatistic current number of live threads

getPeakThreadCount

CountStatistic getPeakThreadCount()
Returns the peak live thread count, since the JVM started or the peak was reset

Returns:
CountStatistic peak live thread count

getTotalStartedThreadCount

CountStatistic getTotalStartedThreadCount()
Returns the total number of threads created and also started since the JVM started

Returns:
CountStatistic total number of threads started

getDaemonThreadCount

CountStatistic getDaemonThreadCount()
Returns the current number of live daemon threads

Returns:
CountStatistic current number of live daemon threads

getAllThreadIds

StringStatistic getAllThreadIds()
Returns a comma separated list of all live thread ids

Returns:
StringStatistic live thread ids

getCurrentThreadCPUTime

CountStatistic getCurrentThreadCPUTime()
Returns the CPU time for the current thread in nanoseconds, if CPU time measurement is enabled. Else returns -1

Returns:
CountStatistic CPU time for the current thread

getMonitorDeadlockedThreads

StringStatistic getMonitorDeadlockedThreads()
Returns a comma separated list of thread ids that are monitor deadlocked

Returns:
StringStatistic


Copyright © 2012. All Rights Reserved.