org.apache.geronimo.management.geronimo.stats
Interface ThreadPoolStats

All Superinterfaces:
Stats
All Known Implementing Classes:
ThreadPool.PoolStatsImpl

public interface ThreadPoolStats
extends Stats

Statistics expected for a Thread Pool implementation


Method Summary
 CountStatistic getCountForConsumer(String consumer)
          For each consumer listed by getThreadConsumers(), this can be used to find out how many threads that consumer is consuming at the time these statistics were generated.
 String[] getThreadConsumers()
          Gets a list of the known consumers of threads from this pool.
 BoundedRangeStatistic getThreadsInUse()
          Gets the min and max pool size, as well as the most, least, and current number of threads in use.
 
Methods inherited from interface javax.management.j2ee.statistics.Stats
getStatistic, getStatisticNames, getStatistics
 

Method Detail

getThreadsInUse

BoundedRangeStatistic getThreadsInUse()
Gets the min and max pool size, as well as the most, least, and current number of threads in use.


getThreadConsumers

String[] getThreadConsumers()
Gets a list of the known consumers of threads from this pool. This may not be all consumers, because they won't necessarily identify themselves, but it's a start when tracking down what's using threads in a pool.


getCountForConsumer

CountStatistic getCountForConsumer(String consumer)
For each consumer listed by getThreadConsumers(), this can be used to find out how many threads that consumer is consuming at the time these statistics were generated.

Parameters:
consumer - The consumer you're inquiring about


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.