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.
| Methods inherited from interface org.jwarp.service.IService |
checkContext, getDependencies, getLogLevel, getName, getStatus, getType, resume, setContext, setDependencies, setLogLevel, shutdown, start, suspend |
SERVICE_TYPE
public static final java.lang.String SERVICE_TYPE
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 foundNotAvailableException - If the requested pool is still runningjava.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 nameuser - The user ticket- Throws:
NotFoundException - If the requested pool could not be foundjava.lang.SecurityException - If access id denied