org.apache.geronimo.pool
Class ThreadPool.PoolStatsImpl
java.lang.Object
org.apache.geronimo.management.stats.StatsImpl
org.apache.geronimo.pool.ThreadPool.PoolStatsImpl
- All Implemented Interfaces:
- Serializable, Stats, ThreadPoolStats
- Enclosing class:
- ThreadPool
public static class ThreadPool.PoolStatsImpl
- extends StatsImpl
- implements ThreadPoolStats
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreadPool.PoolStatsImpl
public ThreadPool.PoolStatsImpl()
getThreadsInUse
public BoundedRangeStatistic getThreadsInUse()
- Description copied from interface:
ThreadPoolStats
- Gets the min and max pool size, as well as the most, least, and current
number of threads in use.
- Specified by:
getThreadsInUse
in interface ThreadPoolStats
getCountForConsumer
public CountStatistic getCountForConsumer(String consumer)
- Description copied from interface:
ThreadPoolStats
- 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.
- Specified by:
getCountForConsumer
in interface ThreadPoolStats
- Parameters:
consumer
- The consumer you're inquiring about
getThreadConsumers
public String[] getThreadConsumers()
- Description copied from interface:
ThreadPoolStats
- 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.
- Specified by:
getThreadConsumers
in interface ThreadPoolStats
prepareConsumers
public void prepareConsumers(Map clients)
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.