IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.management
Interface ThreadPoolMBean


public interface ThreadPoolMBean

This MBean interface allows user to access the thread pool properties. The object name pattern for this MBean is:

 com.ibm.websphere.objectgrid:type=ThreadPool
 
If ObjectGrid is running in a WebSphere Application Server process, more key=value pairs may be added to the object name.

Since:
7.0.0.0 FIX2, XC10

Method Summary
 int getActiveThreadCount()
          Retrieves the approximate number of active threads in the pool.
 int getMaximumSize()
          Retrieves the maximum number of threads in the pool.
 int getMinimumSize()
          Retrieves the minimum number of threads in the pool.
 String getName()
          Retrieves the name of the ThreadPool.
 void setMaximumSize(int size)
          Sets the maximum thread pool size.
 void setMinimumSize(int size)
          Sets the minimum thread pool size.
 

Method Detail

setMaximumSize

void setMaximumSize(int size)
Sets the maximum thread pool size.

Parameters:
size - the maximum number of threads.

getMaximumSize

int getMaximumSize()
Retrieves the maximum number of threads in the pool.

Returns:
the maximum number of threads in the pool

setMinimumSize

void setMinimumSize(int size)
Sets the minimum thread pool size.

Parameters:
size - the minimum number of threads.

getMinimumSize

int getMinimumSize()
Retrieves the minimum number of threads in the pool.

Returns:
the minimum number of threads in the pool

getActiveThreadCount

int getActiveThreadCount()
Retrieves the approximate number of active threads in the pool.

Returns:
the number of active threads in the pool in use

getName

String getName()
Retrieves the name of the ThreadPool.

Returns:
the name of the ThreadPool

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.