Class ThreadPoolStatsImpl
- java.lang.Object
-
- org.glassfish.enterprise.iiop.util.ORBCommonStatsImpl
-
- org.glassfish.enterprise.iiop.util.ThreadPoolStatsImpl
-
- All Implemented Interfaces:
ThreadPoolStats
,org.glassfish.external.statistics.Stats
@ManagedObject @Description("The implementation for the ThreadPoolStats") public class ThreadPoolStatsImpl extends ORBCommonStatsImpl implements ThreadPoolStats
This is the implementation for the ThreadPoolStats and provides the implementation required to get the statistics for a threadpool- Author:
- Pramod Gopinath
-
-
Constructor Summary
Constructors Constructor Description ThreadPoolStatsImpl(com.sun.corba.ee.spi.threadpool.ThreadPool threadPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 ofCountStatistic
.org.glassfish.external.statistics.CountStatistic
getNumberOfBusyThreads()
Returns the number of busy threads, as an instance ofCountStatistic
.org.glassfish.external.statistics.BoundedRangeStatistic
getNumberOfWorkItemsInQueue()
Returns the work items in queueorg.glassfish.external.statistics.CountStatistic
getTotalWorkItemsAdded()
Returns the the total number of work items added so far to the work queue associated with threadpool.-
Methods inherited from class org.glassfish.enterprise.iiop.util.ORBCommonStatsImpl
getStatistic, getStatisticNames, getStatistics, initialize
-
-
-
-
Method Detail
-
getNumberOfBusyThreads
@ManagedAttribute(id="currentbusythreads") @Description("Total number of busy threads") public org.glassfish.external.statistics.CountStatistic getNumberOfBusyThreads()
Description copied from interface:ThreadPoolStats
Returns the number of busy threads, as an instance ofCountStatistic
.- Specified by:
getNumberOfBusyThreads
in interfaceThreadPoolStats
- Returns:
- an instance of
CountStatistic
-
getNumberOfAvailableThreads
@ManagedAttribute @Description("Total number of available threads") public org.glassfish.external.statistics.CountStatistic getNumberOfAvailableThreads()
Description copied from interface:ThreadPoolStats
Returns the total number of available threads, as an instance ofCountStatistic
.- Specified by:
getNumberOfAvailableThreads
in interfaceThreadPoolStats
- Returns:
- an instance of
CountStatistic
-
getCurrentNumberOfThreads
@ManagedAttribute @Description("Total number of current threads") public org.glassfish.external.statistics.BoundedRangeStatistic getCurrentNumberOfThreads()
Description copied from interface:ThreadPoolStats
Returns the statistical information about the number of Threads in the associated ThreaPool, as an instance of BoundedRangeStatistic. This returned value gives an idea about how the pool is changing.- Specified by:
getCurrentNumberOfThreads
in interfaceThreadPoolStats
- Returns:
- an instance of
BoundedRangeStatistic
-
getAverageWorkCompletionTime
@ManagedAttribute @Description("Average time to complete work") public org.glassfish.external.statistics.RangeStatistic getAverageWorkCompletionTime()
Description copied from interface:ThreadPoolStats
Returns the statistical information about the average completion time of a work item in milliseconds.- Specified by:
getAverageWorkCompletionTime
in interfaceThreadPoolStats
- Returns:
- an instance of
RangeStatistic
-
getTotalWorkItemsAdded
@ManagedAttribute @Description("Total number of work items added to the queue") public org.glassfish.external.statistics.CountStatistic getTotalWorkItemsAdded()
Description copied from interface:ThreadPoolStats
Returns the the total number of work items added so far to the work queue associated with threadpool.- Specified by:
getTotalWorkItemsAdded
in interfaceThreadPoolStats
- Returns:
- an instance of
CountStatistic
-
getNumberOfWorkItemsInQueue
@ManagedAttribute @Description("Total number of work items in the queue") public org.glassfish.external.statistics.BoundedRangeStatistic getNumberOfWorkItemsInQueue()
Description copied from interface:ThreadPoolStats
Returns the work items in queue- Specified by:
getNumberOfWorkItemsInQueue
in interfaceThreadPoolStats
- Returns:
- an instance of
BoundedRangeStatistic
-
getAverageTimeInQueue
@ManagedAttribute @Description("Average time in queue") public org.glassfish.external.statistics.RangeStatistic getAverageTimeInQueue()
Description copied from interface:ThreadPoolStats
Returns average time in milliseconds a work item waited in the work queue before getting processed.- Specified by:
getAverageTimeInQueue
in interfaceThreadPoolStats
- Returns:
- an instance of
RangeStatistic
-
-