|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.excalibur.command.TPCThreadManager
This is a ThreadManager that uses a certain number of threads per processor. The number of threads in the pool is a direct proportion to the number of processors.
Inner Class Summary | |
static class |
TPCThreadManager.PipelineRunner
|
Constructor Summary | |
TPCThreadManager()
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. |
|
TPCThreadManager(int numProcessors)
Constructor provides one thread per number of processors. |
|
TPCThreadManager(int numProcessors,
int threadsPerProcessor)
Constructor provides a specified number of threads per processor. |
|
TPCThreadManager(int numProcessors,
int threadsPerProcessor,
long sleepTime)
Constructor provides a specified number of threads per processor. |
|
TPCThreadManager(org.apache.avalon.framework.parameters.Parameters params)
This constructor assumes there is a parameter named "os.arch.cpus" that has a default for the number of CPUs on a system. |
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 TPCThreadManager()
public TPCThreadManager(org.apache.avalon.framework.parameters.Parameters params)
public TPCThreadManager(int numProcessors)
public TPCThreadManager(int numProcessors, int threadsPerProcessor)
public TPCThreadManager(int numProcessors, int threadsPerProcessor, long sleepTime)
Method Detail |
public void register(EventPipeline pipeline)
register
in interface ThreadManager
public void deregister(EventPipeline pipeline)
deregister
in interface ThreadManager
public void deregisterAll()
deregisterAll
in interface ThreadManager
public void run()
run
in interface java.lang.Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |