|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.pipeline.driver.DedicatedThreadStageDriverFactory
public class DedicatedThreadStageDriverFactory
This factory is used to create DedicatedThreadStageDriver instances configured to run specific stages.
Constructor Summary | |
---|---|
DedicatedThreadStageDriverFactory()
Creates a new instance of DedicatedThreadStageDriverFactory |
Method Summary | |
---|---|
StageDriver |
createStageDriver(Stage stage,
StageContext context)
Creates the new DedicatedThreadStageDriver based upon the configuration
of this factory instance |
FaultTolerance |
getFaultTolerance()
Getter for property faultTolerance. |
BlockingQueueFactory<?> |
getQueueFactory()
Getter for property queueFactory. |
long |
getTimeout()
Timeout (in milliseconds) for queue polling 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 |
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 DedicatedThreadStageDriverFactory()
Method Detail |
---|
public StageDriver createStageDriver(Stage stage, StageContext context)
DedicatedThreadStageDriver
based upon the configuration
of this factory instance
createStageDriver
in interface StageDriverFactory
stage
- The stage to be run by the newly created drivercontext
- The context in which the stage will be run
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 BlockingQueueFactory<?> getQueueFactory()
public void setQueueFactory(BlockingQueueFactory<?> queueFactory)
queueFactory
- New value of property queueFactory.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |