org.jwarp.service.threadpool
Interface IThreadPoolService

All Superinterfaces:
IConfigurable, IExceptionProvider, IService
All Known Implementing Classes:
ThreadPoolService

public interface IThreadPoolService
extends IService

Interface for the security service. This interfaces is implemented by a security service object.


Field Summary
static java.lang.String SERVICE_TYPE
           
 
Fields inherited from interface org.jwarp.service.IService
SERVICE_STATUS_CREATED, SERVICE_STATUS_NOT_AVAILABLE, SERVICE_STATUS_READY, SERVICE_STATUS_RESUMING, SERVICE_STATUS_RUNNING, SERVICE_STATUS_STARTING, SERVICE_STATUS_STOPPED, SERVICE_STATUS_STOPPING, SERVICE_STATUS_SUSPENDED
 
Method Summary
 IThreadPool createPool(java.lang.String name, int maxThreads, int initPoolSize, ITicket user)
          Add a server listener to listen to the server's activities.
 IThreadPool getPool(java.lang.String poolName, ITicket user)
          Gets a pool.
 java.util.Iterator getPoolNames()
          This lists all security context's names.
 void removePool(java.lang.String poolName, ITicket user)
          Removes a pool.
 
Methods inherited from interface org.jwarp.service.IService
checkContext, getDependencies, getLogLevel, getName, getStatus, getType, resume, setContext, setDependencies, setLogLevel, shutdown, start, suspend
 
Methods inherited from interface org.jwarp.service.configuration.IConfigurable
configure
 
Methods inherited from interface org.jwarp.common.IExceptionProvider
addExceptionListener, getExceptionListeners, removeAllExceptionListeners, removeExceptionListener
 

Field Detail

SERVICE_TYPE

public static final java.lang.String SERVICE_TYPE
Method Detail

getPoolNames

public java.util.Iterator getPoolNames()
This lists all security context's names.
Returns:
The names of all registered security contexts.

createPool

public IThreadPool createPool(java.lang.String name,
                              int maxThreads,
                              int initPoolSize,
                              ITicket user)
Add a server listener to listen to the server's activities.

removePool

public void removePool(java.lang.String poolName,
                       ITicket user)
                throws NotFoundException,
                       NotAvailableException,
                       java.lang.SecurityException
Removes a pool.
Throws:
NotFoundException - If the requested pool could not be found
NotAvailableException - If the requested pool is still running
java.lang.SecurityException - If access id denied

getPool

public IThreadPool getPool(java.lang.String poolName,
                           ITicket user)
                    throws NotFoundException,
                           java.lang.SecurityException
Gets a pool.
Parameters:
pool - The pool's name
user - The user ticket
Throws:
NotFoundException - If the requested pool could not be found
java.lang.SecurityException - If access id denied

©   O R C A   S y s t e m s