Package org.oddjob.state
Class AnyActiveStateOp
java.lang.Object
org.oddjob.state.ScoringStateOperator
org.oddjob.state.AnyActiveStateOp
- All Implemented Interfaces:
StateOperator
Implementation of a
StateOperator that provides a parent state
as follows:
- If any child is ACTIVE/EXECUTING then evaluate to ACTIVE.
- If any child is STARTED then evaluate to STARTED.
- If any child is EXCEPTION then evaluate to EXCEPTION.
- If any child is INCOMPLETE then evaluate to INCOMPLETE.
- If any child is READY then evaluate to READY.
- Evaluate to COMPLETE.
Structural
jobs to calculate parent state. An ACTIVE or STARTED state is returned
even if a child has failed because this is necessary to keep Oddjob
alive if no other job has started a none daemon thread.- Author:
- rob
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ParentStateConverterprotected intscore(ParentState state) toString()Methods inherited from class org.oddjob.state.ScoringStateOperator
evaluate, scoreAndCheck
-
Constructor Details
-
AnyActiveStateOp
public AnyActiveStateOp() -
AnyActiveStateOp
-
-
Method Details
-
score
- Specified by:
scorein classScoringStateOperator
-
getParentStateConverter
- Specified by:
getParentStateConverterin classScoringStateOperator
-
toString
-