org.oddjob.state
Class WorstStateOp
java.lang.Object
org.oddjob.state.WorstStateOp
- All Implemented Interfaces:
- StateOperator
public class WorstStateOp
- extends Object
- implements StateOperator
Implementation of a StateOperator
that provides a parent state
as follows:
- If any child is EXCEPTION then evaluate to EXCEPTION.
- If any child is INCOMPLETE then evaluate to INCOMPLETE.
- If any child is ACTIVE/EXECUTING then evaluate to ACTIVE.
- If any child is READY then evaluate to READY.
- Evaluate to COMPLETE.
This Operator is legacy behaviour and has been replace by
AnyActiveStateOp
in most Structural
jobs.
- Author:
- rob
WorstStateOp
public WorstStateOp()
evaluate
public ParentState evaluate(State... states)
- Description copied from interface:
StateOperator
- Evaluate the given states.
- Specified by:
evaluate
in interface StateOperator
- Parameters:
states
- The states.
- Returns:
- The result state.
toString
public String toString()
- Overrides:
toString
in class Object