FileDocCategorySizeDatePackage
ThreadPoolStats.javaAPI DocGlassfish v2 API4519Tue May 08 12:30:16 BST 2007com.sun.enterprise.admin.monitor.stats

ThreadPoolStats

public interface ThreadPoolStats implements javax.management.j2ee.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.
author
Kedar Mhaswade
since
S1AS8.0
version
$Revision: 1.5 $

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.BoundedRangeStatisticgetNumberOfWorkItemsInQueue()
Returns the work items in queue

return
an instance of {@link BoundedRangeStatistic}

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}