Package org.oddjob.state
Class ServiceManagerStateOp
java.lang.Object
org.oddjob.state.ServiceManagerStateOp
- All Implemented Interfaces:
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 READY then evaluate to READY.
- If any child is ACTIVE/EXECUTING then evaluate to ACTIVE.
- Otherwise all children must be COMPLETE or STARTED so evaluate to COMPLETE.
This Operator is used in many Structural
jobs to calculate parent state.
- Author:
- rob
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate(StateEvent... states) Evaluate the given states.toString()
-
Constructor Details
-
ServiceManagerStateOp
public ServiceManagerStateOp()
-
-
Method Details
-
evaluate
Description copied from interface:StateOperatorEvaluate the given states.- Specified by:
evaluatein interfaceStateOperator- Parameters:
states- The states.- Returns:
- The result state.
-
toString
-