|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.root.RootObject
com.neeve.daemon.thread.DmnThreadManager
public class DmnThreadManager
The daemon thread manager class.
This class is the base class for all daemon thread manager classes. This class creates the thread pool.
Method Summary | |
---|---|
DmnThreadPool |
getThreadPool()
|
void |
init(int numIOThreads,
long[] ioThreadCpuAffinityMasks,
int maxOnDemandThreads)
Initialize the daemon thread manager. |
void |
shutdown()
Shutdown the thread manager This method shuts down the thread manager. |
void |
start()
Start the thread manager. |
Methods inherited from class com.neeve.root.RootObject |
---|
getChecked, getThreaded, getTracer, setChecked, setTracer |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public final void init(int numIOThreads, long[] ioThreadCpuAffinityMasks, int maxOnDemandThreads) throws Exception
numIOThreads
- The number of I/O threads to initialize the pool
with. This parameter is ignored in case the service is operating in
single threaded mode.ioThreadCpuAffinityMasks
- The array of CPU thread affinites one
for each IO thread.maxOnDemandThreads
- Specifies the maximum number of on-demand
threads that can be created. This parameter is ignored in case the
service is operating in single threaded mode since no on-demand
theads can be created if operating single threaded.
This method initializes the thread pool.
Exception
public final void start()
This method starts the thread manager. It does do by starting the thread
pool. This method does not return until shutdown()
is invoked.
public final DmnThreadPool getThreadPool()
public final void shutdown()
This method shuts down the thread manager. It does do by shuttinf down
the thread pool. This method can be called in any state i.e.
1. create()->shutdown()
2. create()->init()->shutdown()
3. create()->init()->start()->shutdown()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |