jrun.jms.core.threads
Interface ThreadPoolManager

All Superinterfaces:
JMSServiceAdapterMBean, java.io.Serializable, Service, ServiceMBean, ThreadPoolManagerServiceMBean
All Known Implementing Classes:
ThreadPoolManagerService

public interface ThreadPoolManager
extends ThreadPoolManagerServiceMBean


Fields inherited from interface jrunx.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Method Summary
 ThreadPool createThreadPool(java.lang.String name, int size)
          A client has requested a new thread pool creation with the given name.
 void deleteThreadPool(java.lang.String name)
          Attempts to shutdown all the threads in the pool and removes the given ThreadPool.
 ThreadPool getThreadPool(java.lang.String name)
          Get the ThreadPool with the given name.
 
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

deleteThreadPool

public void deleteThreadPool(java.lang.String name)
                      throws ThreadPoolException
Attempts to shutdown all the threads in the pool and removes the given ThreadPool.
Parameters:
name - The unique name of the requested ThreadPool
Throws:
UnknownThreadPoolException - if the pool with the given name does not exist.

createThreadPool

public ThreadPool createThreadPool(java.lang.String name,
                                   int size)
                            throws ThreadPoolException
A client has requested a new thread pool creation with the given name. if the named Pool has not already been created, then create it add it to the list, and return it to the client.
Parameters:
name - The unique name given to this ThreadPool
size - The maximum nuber of Threads this pool contains.
Throws:
ThreadPoolExistsException - if the pool with the given name already exists.

getThreadPool

public ThreadPool getThreadPool(java.lang.String name)
                         throws ThreadPoolException
Get the ThreadPool with the given name. if the named pool does not exist throw an exception.
Parameters:
name - The unique name of the requested ThreadPool
Throws:
UnknownThreadPoolException - if the pool with the given name does not exist.


Copyright � 2002 Macromedia Corporation. All Rights Reserved.