Class 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 Detail

      • ThreadPoolStatsImpl

        public ThreadPoolStatsImpl​(com.sun.corba.ee.spi.threadpool.ThreadPool threadPool)
                            throws com.sun.corba.ee.spi.threadpool.NoSuchWorkQueueException
        Throws:
        com.sun.corba.ee.spi.threadpool.NoSuchWorkQueueException
    • 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 of CountStatistic.
        Specified by:
        getNumberOfBusyThreads in interface ThreadPoolStats
        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 of CountStatistic.
        Specified by:
        getNumberOfAvailableThreads in interface ThreadPoolStats
        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 interface ThreadPoolStats
        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 interface ThreadPoolStats
        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 interface ThreadPoolStats
        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 interface ThreadPoolStats
        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 interface ThreadPoolStats
        Returns:
        an instance of RangeStatistic