com.ibm.websphere.monitor.jmx
Interface ThreadPoolMXBean


public interface ThreadPoolMXBean

Management interface for the MBean "WebSphere:type=ThreadPoolStats,name=Default Executor". The Liberty profile makes this MBean available in its platform MBean server when the monitor-1.0 feature is enabled to allow monitoring of the thread pool. This interface can be used to request a proxy object via the javax.management.JMX#newMXBeanProxy method.


Method Summary
 int getActiveThreads()
          Retrieves the value of the read-only attribute ActiveThreads, which is the number of active threads in the pool
 java.lang.String getPoolName()
          Retrieves the value of the read-only attribute PoolName; all web requests execute in a thread pool called "Default Executor"
 int getPoolSize()
          Retrieves the value of the read-only attribute PoolSize, which is the total number of threads in the pool, including both active and inactive threads.
 

Method Detail

getPoolName

java.lang.String getPoolName()
Retrieves the value of the read-only attribute PoolName; all web requests execute in a thread pool called "Default Executor"

Returns:
thread pool name

getActiveThreads

int getActiveThreads()
Retrieves the value of the read-only attribute ActiveThreads, which is the number of active threads in the pool

Returns:
active thread count

getPoolSize

int getPoolSize()
Retrieves the value of the read-only attribute PoolSize, which is the total number of threads in the pool, including both active and inactive threads.

Returns:
thread pool size