Novell exteNd
Director 5.2 API

com.sssw.fw.api
Class EboThreadPoolManager

java.lang.Object
 |
 +--com.sssw.fw.api.EboThreadPoolManager
All Implemented Interfaces:
EbiThreadPoolManager

public abstract class EboThreadPoolManager
extends Object
implements EbiThreadPoolManager

this is a base class to extend for a custom thread pool. to write your own thread pool, extend this class and implement the methods of the EbiThreadPoolManager interface. the Implementing class (your therad pool) has to be placed into the service.xml for the "com.sssw.fw.api.EbiThreadPoolManager" interface so that this abstract class can load your implementation This abstract class provides a singleton factory pattern, hence only one instance of your thread pool will be instantiated

Since:
v.5.0

Fields inherited from interface com.sssw.fw.api.EbiThreadPoolManager
THREADPOOL_BLOCKED_ACTION_HANDLER, THREADPOOL_BUFFERSIZE, THREADPOOL_ENABLEATSTARTUP, THREADPOOL_EXECUTOR_CLASS, THREADPOOL_INITIALTHREADS, THREADPOOL_KEEPALIVETIME, THREADPOOL_MAXTHREADS, THREADPOOL_MGR, THREADPOOL_MINTHREADS
 
Constructor Summary
EboThreadPoolManager()
           
 
Method Summary
static EbiThreadPoolManager getPoolManager()
          return the singleton of the implementing class of the EbiThreadPoolManager interface; if this is called for the first time, the implementing class will be determined via the service.xml entry for the "com.sssw.fw.api.EbiThreadPoolManager" interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods implemented from interface com.sssw.fw.api.EbiThreadPoolManager
dumpStatistics, dumpStatistics, execute, init, interruptAll, isAvailable, isTerminatedAfterShutdown, shutdown
 

Constructor Detail

EboThreadPoolManager

public EboThreadPoolManager()
Method Detail

getPoolManager

public static EbiThreadPoolManager getPoolManager()
                                           throws EboFactoryException
return the singleton of the implementing class of the EbiThreadPoolManager interface; if this is called for the first time, the implementing class will be determined via the service.xml entry for the "com.sssw.fw.api.EbiThreadPoolManager" interface. the instance will be created via Class.newInstance()
Returns:
the singleton of the implementing class cast to the interface
Throws:
EboFactoryException -  
Since:
v.5.0

Novell exteNd
Director 5.2 API