| java.lang.Object org.jacorb.poa.RPPoolManager
RPPoolManager | abstract public class RPPoolManager (Code) | | This class provides and manages a pool of ready started threads for
request processing.
author: Gerald Brose author: Reimo Tiedemann version: $Id: RPPoolManager.java,v 1.22 2006/07/07 12:09:50 alphonse.bendt Exp $ See Also: org.jacorb.poa.RequestProcessor |
Constructor Summary | |
protected | RPPoolManager(Current _current, int min, int max, Logger _logger, Configuration _configuration) |
RPPoolManager | protected RPPoolManager(Current _current, int min, int max, Logger _logger, Configuration _configuration)(Code) | | |
destroy | abstract void destroy()(Code) | | invoked by clients to indicate that they won't use this poolManager anymore.
|
destroy | protected synchronized void destroy(boolean really)(Code) | | shutdown this poolManager. clients should invoke
RPPoolManager.destroy() instead.
|
getPoolCount | protected int getPoolCount()(Code) | | returns the number of unused processors contained in the pool
|
getPoolSize | protected synchronized int getPoolSize()(Code) | | returns the size of the processor pool (used and unused processors)
|
getProcessor | protected synchronized RequestProcessor getProcessor()(Code) | | returns a processor from pool, the first call causes
the initialization of the processor pool,
if no processor available the number of processors
will increased until the max_pool_size is reached,
this method blocks if no processor available and the
max_pool_size is reached until a processor will released
|
releaseProcessor | protected synchronized void releaseProcessor(RequestProcessor rp)(Code) | | gives a processor back into the pool if the number of
available processors is smaller than min_pool_size,
otherwise the processor will terminate
|
warnPoolIsEmpty | protected void warnPoolIsEmpty()(Code) | | |
|
|