|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.excalibur.event.command.TPSPThreadManager
This is a ThreadManager
which provides a threadpool per
Sink
per EventPipeline
. ::NOTE:: This is not
implemented yet!
Nested Class Summary | |
static class |
TPSPThreadManager.PipelineRunner
The PipelineRunner will run the pipelines |
Constructor Summary | |
TPSPThreadManager()
The default constructor assumes there is a system property named "os.arch.cpus" that has a default for the number of CPUs on a system. |
|
TPSPThreadManager(int maxThreadPerPool,
long sleepTime)
Constructor provides a specified number of threads per processor. |
Method Summary | |
void |
deregister(EventPipeline pipeline)
Deregister an EventPipeline with the ThreadManager |
void |
deregisterAll()
Deregisters all EventPipelines from this ThreadManager |
void |
register(EventPipeline pipeline)
Register an EventPipeline with the ThreadManager. |
void |
run()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TPSPThreadManager() throws Exception
Exception
- if there is any problems creating the ThreadManagerpublic TPSPThreadManager(int maxThreadPerPool, long sleepTime) throws Exception
maxThreadPerPool
- The number of processors in the machinesleepTime
- The number of milliseconds to wait between cycles
Exception
- when there is a problem creating the ThreadManagerMethod Detail |
public void register(EventPipeline pipeline)
register
in interface ThreadManager
pipeline
- The pipeline we are registeringpublic void deregister(EventPipeline pipeline)
deregister
in interface ThreadManager
pipeline
- The pipeline to unregisterpublic void deregisterAll()
deregisterAll
in interface ThreadManager
public void run()
run
in interface Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |