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

All Superinterfaces:
javax.management.j2ee.statistics.Stats

public interface ThreadPoolStats
extends javax.management.j2ee.statistics.Stats

Statistics expected for a Thread Pool implementation

Version:
$Rev: 409817 $ $Date: 2006-05-27 09:56:38 +0200 (Sat, 27 May 2006) $

Method Summary
 javax.management.j2ee.statistics.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.
 javax.management.j2ee.statistics.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

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


getThreadConsumers

public 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

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