@ManagedObject @Description(value="The implementation for the ThreadPoolStats") public class ThreadPoolStatsImpl extends ORBCommonStatsImpl implements ThreadPoolStats
| Constructor and Description |
|---|
ThreadPoolStatsImpl(com.sun.corba.ee.spi.threadpool.ThreadPool threadPool) |
| Modifier and Type | Method and Description |
|---|---|
org.glassfish.external.statistics.RangeStatistic |
getAverageTimeInQueue()
Returns average time in milliseconds a work item waited in the work queue before getting processed.
|
org.glassfish.external.statistics.RangeStatistic |
getAverageWorkCompletionTime()
Returns the statistical information about the average completion time of a work item in milliseconds.
|
org.glassfish.external.statistics.BoundedRangeStatistic |
getCurrentNumberOfThreads()
Returns the statistical information about the number of Threads in the associated ThreaPool, as an instance of BoundedRangeStatistic.
|
org.glassfish.external.statistics.CountStatistic |
getNumberOfAvailableThreads()
Returns the total number of available threads, as an instance of
CountStatistic. |
org.glassfish.external.statistics.CountStatistic |
getNumberOfBusyThreads()
Returns the number of busy threads, as an instance of
CountStatistic. |
org.glassfish.external.statistics.BoundedRangeStatistic |
getNumberOfWorkItemsInQueue()
Returns the work items in queue
|
org.glassfish.external.statistics.CountStatistic |
getTotalWorkItemsAdded()
Returns the the total number of work items added so far to the work queue associated with threadpool.
|
getStatistic, getStatisticNames, getStatistics, initializepublic ThreadPoolStatsImpl(com.sun.corba.ee.spi.threadpool.ThreadPool threadPool)
throws com.sun.corba.ee.spi.threadpool.NoSuchWorkQueueException
com.sun.corba.ee.spi.threadpool.NoSuchWorkQueueException@ManagedAttribute(id="currentbusythreads") @Description(value="Total number of busy threads") public org.glassfish.external.statistics.CountStatistic getNumberOfBusyThreads()
ThreadPoolStatsCountStatistic.getNumberOfBusyThreads in interface ThreadPoolStatsCountStatistic@ManagedAttribute @Description(value="Total number of available threads") public org.glassfish.external.statistics.CountStatistic getNumberOfAvailableThreads()
ThreadPoolStatsCountStatistic.getNumberOfAvailableThreads in interface ThreadPoolStatsCountStatistic@ManagedAttribute @Description(value="Total number of current threads") public org.glassfish.external.statistics.BoundedRangeStatistic getCurrentNumberOfThreads()
ThreadPoolStatsgetCurrentNumberOfThreads in interface ThreadPoolStatsBoundedRangeStatistic@ManagedAttribute @Description(value="Average time to complete work") public org.glassfish.external.statistics.RangeStatistic getAverageWorkCompletionTime()
ThreadPoolStatsgetAverageWorkCompletionTime in interface ThreadPoolStatsRangeStatistic@ManagedAttribute @Description(value="Total number of work items added to the queue") public org.glassfish.external.statistics.CountStatistic getTotalWorkItemsAdded()
ThreadPoolStatsgetTotalWorkItemsAdded in interface ThreadPoolStatsCountStatistic@ManagedAttribute @Description(value="Total number of work items in the queue") public org.glassfish.external.statistics.BoundedRangeStatistic getNumberOfWorkItemsInQueue()
ThreadPoolStatsgetNumberOfWorkItemsInQueue in interface ThreadPoolStatsBoundedRangeStatistic@ManagedAttribute @Description(value="Average time in queue") public org.glassfish.external.statistics.RangeStatistic getAverageTimeInQueue()
ThreadPoolStatsgetAverageTimeInQueue in interface ThreadPoolStatsRangeStatisticCopyright © 2019. All rights reserved.