Interface ThreadPoolStats

  • All Superinterfaces:
    org.glassfish.external.statistics.Stats
    All Known Implementing Classes:
    ThreadPoolStatsImpl

    public interface ThreadPoolStats
    extends org.glassfish.external.statistics.Stats
    Stats interface for the monitorable attributes of the a generic ThreadPool. This combines the statistics that were exposed in 7.0 with the new ones. In 8.0, the generic Thread Pool that can be used by any component in the server runtime is introduced.
    Since:
    S1AS8.0
    Author:
    Kedar Mhaswade
    • Method Summary

      All Methods Instance Methods Abstract 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 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.
      • Methods inherited from interface org.glassfish.external.statistics.Stats

        getStatistic, getStatisticNames, getStatistics
    • Method Detail

      • getCurrentNumberOfThreads

        org.glassfish.external.statistics.BoundedRangeStatistic getCurrentNumberOfThreads()
        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.
        Returns:
        an instance of BoundedRangeStatistic
      • getNumberOfAvailableThreads

        org.glassfish.external.statistics.CountStatistic getNumberOfAvailableThreads()
        Returns the total number of available threads, as an instance of CountStatistic.
        Returns:
        an instance of CountStatistic
      • getNumberOfBusyThreads

        org.glassfish.external.statistics.CountStatistic getNumberOfBusyThreads()
        Returns the number of busy threads, as an instance of CountStatistic.
        Returns:
        an instance of CountStatistic
      • getAverageWorkCompletionTime

        org.glassfish.external.statistics.RangeStatistic getAverageWorkCompletionTime()
        Returns the statistical information about the average completion time of a work item in milliseconds.
        Returns:
        an instance of RangeStatistic
      • getTotalWorkItemsAdded

        org.glassfish.external.statistics.CountStatistic getTotalWorkItemsAdded()
        Returns the the total number of work items added so far to the work queue associated with threadpool.
        Returns:
        an instance of CountStatistic
      • getAverageTimeInQueue

        org.glassfish.external.statistics.RangeStatistic getAverageTimeInQueue()
        Returns average time in milliseconds a work item waited in the work queue before getting processed.
        Returns:
        an instance of RangeStatistic
      • getNumberOfWorkItemsInQueue

        org.glassfish.external.statistics.BoundedRangeStatistic getNumberOfWorkItemsInQueue()
        Returns the work items in queue
        Returns:
        an instance of BoundedRangeStatistic