@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, initialize
public 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()
ThreadPoolStats
CountStatistic
.getNumberOfBusyThreads
in interface ThreadPoolStats
CountStatistic
@ManagedAttribute @Description(value="Total number of available threads") public org.glassfish.external.statistics.CountStatistic getNumberOfAvailableThreads()
ThreadPoolStats
CountStatistic
.getNumberOfAvailableThreads
in interface ThreadPoolStats
CountStatistic
@ManagedAttribute @Description(value="Total number of current threads") public org.glassfish.external.statistics.BoundedRangeStatistic getCurrentNumberOfThreads()
ThreadPoolStats
getCurrentNumberOfThreads
in interface ThreadPoolStats
BoundedRangeStatistic
@ManagedAttribute @Description(value="Average time to complete work") public org.glassfish.external.statistics.RangeStatistic getAverageWorkCompletionTime()
ThreadPoolStats
getAverageWorkCompletionTime
in interface ThreadPoolStats
RangeStatistic
@ManagedAttribute @Description(value="Total number of work items added to the queue") public org.glassfish.external.statistics.CountStatistic getTotalWorkItemsAdded()
ThreadPoolStats
getTotalWorkItemsAdded
in interface ThreadPoolStats
CountStatistic
@ManagedAttribute @Description(value="Total number of work items in the queue") public org.glassfish.external.statistics.BoundedRangeStatistic getNumberOfWorkItemsInQueue()
ThreadPoolStats
getNumberOfWorkItemsInQueue
in interface ThreadPoolStats
BoundedRangeStatistic
@ManagedAttribute @Description(value="Average time in queue") public org.glassfish.external.statistics.RangeStatistic getAverageTimeInQueue()
ThreadPoolStats
getAverageTimeInQueue
in interface ThreadPoolStats
RangeStatistic
Copyright © 2021. All rights reserved.