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 ThreadPoolStatsThis 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.RangeStatisticgetAverageTimeInQueue()Returns average time in milliseconds a work item waited in the work queue before getting processed.org.glassfish.external.statistics.RangeStatisticgetAverageWorkCompletionTime()Returns the statistical information about the average completion time of a work item in milliseconds.org.glassfish.external.statistics.BoundedRangeStatisticgetCurrentNumberOfThreads()Returns the statistical information about the number of Threads in the associated ThreaPool, as an instance of BoundedRangeStatistic.org.glassfish.external.statistics.CountStatisticgetNumberOfAvailableThreads()Returns the total number of available threads, as an instance ofCountStatistic.org.glassfish.external.statistics.CountStatisticgetNumberOfBusyThreads()Returns the number of busy threads, as an instance ofCountStatistic.org.glassfish.external.statistics.BoundedRangeStatisticgetNumberOfWorkItemsInQueue()Returns the work items in queueorg.glassfish.external.statistics.CountStatisticgetTotalWorkItemsAdded()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:ThreadPoolStatsReturns the number of busy threads, as an instance ofCountStatistic.- Specified by:
getNumberOfBusyThreadsin 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:ThreadPoolStatsReturns the total number of available threads, as an instance ofCountStatistic.- Specified by:
getNumberOfAvailableThreadsin 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:ThreadPoolStatsReturns 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:
getCurrentNumberOfThreadsin 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:ThreadPoolStatsReturns the statistical information about the average completion time of a work item in milliseconds.- Specified by:
getAverageWorkCompletionTimein 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:ThreadPoolStatsReturns the the total number of work items added so far to the work queue associated with threadpool.- Specified by:
getTotalWorkItemsAddedin 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:ThreadPoolStatsReturns the work items in queue- Specified by:
getNumberOfWorkItemsInQueuein interfaceThreadPoolStats- Returns:
- an instance of
BoundedRangeStatistic
-
getAverageTimeInQueue
@ManagedAttribute @Description("Average time in queue") public org.glassfish.external.statistics.RangeStatistic getAverageTimeInQueue()Description copied from interface:ThreadPoolStatsReturns average time in milliseconds a work item waited in the work queue before getting processed.- Specified by:
getAverageTimeInQueuein interfaceThreadPoolStats- Returns:
- an instance of
RangeStatistic
-
-