jrunx.scheduler
Interface ThreadPoolServiceMBean

All Superinterfaces:
java.io.Serializable, Service, ServiceMBean
All Known Subinterfaces:
JRunProxyServiceMBean, NetworkServiceMBean, Scheduler, SchedulerServiceMBean, SSL, SSLServiceMBean, WebServiceMBean
All Known Implementing Classes:
ThreadPoolService

public interface ThreadPoolServiceMBean
extends ServiceMBean

The MBean interface for all services that utilize a thread pool. This interface is implemented in the abstract base class ThreadPoolService and serves as a base interface for all thread pool based services

Author:
Karl Moss

Fields inherited from interface jrunx.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Method Summary
 int getActiveHandlerThreads()
          Gets the number of active handler threads for the thread pool
 int getMaxHandlerThreads()
          Gets the maximum number of handler threads for the thread pool
 int getMinHandlerThreads()
          Gets the minimum number of handler threads for the thread pool
 int getThreadWaitTimeout()
          Gets the timeout value before giving up waiting for a thread to become available.
 void setActiveHandlerThreads(int activeThreads)
          Sets the number of active handler threads for the thread pool
 void setMaxHandlerThreads(int maxThreads)
          Sets the maximum number of handler threads for the thread pool
 void setMinHandlerThreads(int minThreads)
          Sets the minimum number of handler threads for the thread pool
 void setThreadWaitTimeout(int timeoutSeconds)
          Sets the timeout value before giving up waiting for a thread to become available.
 
Methods inherited from interface jrunx.kernel.ServiceMBean
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind
 
Methods inherited from interface jrunx.kernel.Service
destroy, getStatus, init, start, stop, updateStatus
 

Method Detail

getMinHandlerThreads

public int getMinHandlerThreads()
Gets the minimum number of handler threads for the thread pool
Returns:
The minimum number of handler threads

setMinHandlerThreads

public void setMinHandlerThreads(int minThreads)
Sets the minimum number of handler threads for the thread pool
Parameters:
minThreads - The minimum number of handler threads

getMaxHandlerThreads

public int getMaxHandlerThreads()
Gets the maximum number of handler threads for the thread pool
Returns:
The maximum number of handler threads

setMaxHandlerThreads

public void setMaxHandlerThreads(int maxThreads)
Sets the maximum number of handler threads for the thread pool
Parameters:
maxThreads - The minimum number of handler threads

getActiveHandlerThreads

public int getActiveHandlerThreads()
Gets the number of active handler threads for the thread pool
Returns:
The number of active handler threads

setActiveHandlerThreads

public void setActiveHandlerThreads(int activeThreads)
Sets the number of active handler threads for the thread pool
Parameters:
actvieThreads - The number of active handler threads

setThreadWaitTimeout

public void setThreadWaitTimeout(int timeoutSeconds)
Sets the timeout value before giving up waiting for a thread to become available. The value is in seconds. The default value is 20 seconds.

getThreadWaitTimeout

public int getThreadWaitTimeout()
Gets the timeout value before giving up waiting for a thread to become available. The value is in seconds.


Copyright � 2002 Macromedia Corporation. All Rights Reserved.