|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.pipeline.driver.ThreadPoolStageDriverFactory
public class ThreadPoolStageDriverFactory
This factory is used to create ThreadPoolStageDriver instances configured
to run specific stages.
| Constructor Summary | |
|---|---|
ThreadPoolStageDriverFactory()
Creates a new instance of ThreadPoolStageDriverFactory |
|
| Method Summary | |
|---|---|
StageDriver |
createStageDriver(Stage stage,
StageContext context)
Creates the new ThreadPoolStageDriver based upon the configuration
of this factory instance |
FaultTolerance |
getFaultTolerance()
Getter for property faultTolerance. |
int |
getNumThreads()
Returns the number of threads that will be allocated to the thread pool of a driver created by this factory. |
BlockingQueueFactory<?> |
getQueueFactory()
Getter for property queueFactory. |
long |
getTimeout()
Timeout for wait to ensure deadlock cannot occur on thread termination. |
void |
setFaultTolerance(FaultTolerance faultTolerance)
Setter for property faultTolerance. |
void |
setFaultToleranceLevel(String level)
Convenience setter for property faultTolerance for use by Digester. |
void |
setNumThreads(int numThreads)
Sets the number of threads that will be allocated to the thread pool of a driver created by this factory. |
void |
setQueueFactory(BlockingQueueFactory<?> queueFactory)
Setter for property queueFactory. |
void |
setTimeout(long timeout)
Setter for property timeout. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadPoolStageDriverFactory()
| Method Detail |
|---|
public StageDriver createStageDriver(Stage stage,
StageContext context)
ThreadPoolStageDriver based upon the configuration
of this factory instance
createStageDriver in interface StageDriverFactorystage - The stage to be run by the newly created drivercontext - The context in which the stage will be run
public BlockingQueueFactory<?> getQueueFactory()
public void setQueueFactory(BlockingQueueFactory<?> queueFactory)
queueFactory - New value of property queueFactory.public long getTimeout()
public void setTimeout(long timeout)
timeout - New value of property timeout.public FaultTolerance getFaultTolerance()
FaultTolerance for valid values
and enumation meanings.
public void setFaultTolerance(FaultTolerance faultTolerance)
faultTolerance - New value of property faultTolerance.public void setFaultToleranceLevel(String level)
level - New value of property level ("ALL","CHECKED", or "NONE").public int getNumThreads()
public void setNumThreads(int numThreads)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||