FileDocCategorySizeDatePackage
ThreadPoolStats.javaAPI DocGlassfish v2 API4194Fri May 25 16:49:50 BST 2007com.sun.appserv.management.monitor.statistics

ThreadPoolStats

public interface ThreadPoolStats implements javax.management.j2ee.statistics.Stats
Stats interface for the monitorable attributes of a generic thread pool.
see
com.sun.appserv.management.monitor.ThreadPoolMonitor

Fields Summary
Constructors Summary
Methods Summary
public javax.management.j2ee.statistics.RangeStatisticgetAverageTimeInQueue()
Returns average time in milliseconds a work item waited in the work queue before getting processed.

return
an instance of {@link RangeStatistic}

public javax.management.j2ee.statistics.RangeStatisticgetAverageWorkCompletionTime()
Returns the statistical information about the average completion time of a work item in milliseconds.

return
an instance of {@link RangeStatistic}

public javax.management.j2ee.statistics.BoundedRangeStatisticgetCurrentNumberOfThreads()
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.

return
an instance of {@link BoundedRangeStatistic}

public javax.management.j2ee.statistics.CountStatisticgetNumberOfAvailableThreads()
Returns the total number of available threads, as an instance of {@link CountStatistic}.

return
an instance of {@link CountStatistic}

public javax.management.j2ee.statistics.CountStatisticgetNumberOfBusyThreads()
Returns the number of busy threads, as an instance of {@link CountStatistic}.

return
an instance of {@link CountStatistic}

public javax.management.j2ee.statistics.CountStatisticgetTotalWorkItemsAdded()
Returns the the total number of work items added so far to the work queue associated with threadpool.

return
an instance of {@link CountStatistic}

public javax.management.j2ee.statistics.BoundedRangeStatisticgetWorkItemsInQueue()
Number of items in the work queue.

return
an instance of {@link CountStatistic}