org.apache.geronimo.pool
Class ThreadPool.PoolStatsImpl

java.lang.Object
  extended by org.apache.geronimo.management.stats.StatsImpl
      extended by 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

Constructor Summary
ThreadPool.PoolStatsImpl()
           
 
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.
 void prepareConsumers(Map clients)
           
 
Methods inherited from class org.apache.geronimo.management.stats.StatsImpl
addStat, getStatistic, getStatisticNames, getStatistics, removeStat, setLastSampleTime, setStartTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.management.j2ee.statistics.Stats
getStatistic, getStatisticNames, getStatistics
 

Constructor Detail

ThreadPool.PoolStatsImpl

public ThreadPool.PoolStatsImpl()
Method Detail

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.