org.jboss.util.threadpool
Interface ThreadPoolMBean

All Known Subinterfaces:
BasicThreadPoolMBean (src)
All Known Implementing Classes:
BasicThreadPool (src)

public interface ThreadPoolMBean

Management interface for the thread pool.


Method Summary
 ThreadPool (src) getInstance()
          Get the instance
 int getMaximumPoolSize()
          Get the maximum pool size
 int getMinimumPoolSize()
          Get the minimum pool size
 java.lang.String getName()
          Get the thread pool name
 int getPoolNumber()
          Get the internal pool number
 void setMaximumPoolSize(int size)
          Set the maximum pool size
 void setMinimumPoolSize(int size)
          Set the minimum pool size
 void setName(java.lang.String name)
          Set the thread pool name
 void stop()
          Stop the thread pool
 

Method Detail

getName

public java.lang.String getName()
Get the thread pool name

Returns:
the thread pool name

setName

public void setName(java.lang.String name)
Set the thread pool name

Parameters:
name - the name

getPoolNumber

public int getPoolNumber()
Get the internal pool number

Returns:
the internal pool number

getMinimumPoolSize

public int getMinimumPoolSize()
Get the minimum pool size

Returns:
the minimum pool size

setMinimumPoolSize

public void setMinimumPoolSize(int size)
Set the minimum pool size

Parameters:
size - the minimum pool size

getMaximumPoolSize

public int getMaximumPoolSize()
Get the maximum pool size

Returns:
the maximum pool size

setMaximumPoolSize

public void setMaximumPoolSize(int size)
Set the maximum pool size

Parameters:
size - the maximum pool size

getInstance

public ThreadPool (src)  getInstance()
Get the instance


stop

public void stop()
Stop the thread pool