com.ibm.websphere.monitor.jmx

Interface ThreadPoolMXBean


  1. 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

Modifier and Type Method and Description
  1. int
getActiveThreads()
Retrieves the value of the read-only attribute ActiveThreads, which is the number of active threads in the pool
  1. java.lang.String
getPoolName()
Retrieves the value of the read-only attribute PoolName; all web requests execute in a thread pool called "Default Executor"
  1. 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

  1. 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

  1. 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

  1. 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