org.oddjob.state
Class AnyActiveStateOp

java.lang.Object
  extended by org.oddjob.state.AnyActiveStateOp
All Implemented Interfaces:
StateOperator

public class AnyActiveStateOp
extends Object
implements StateOperator

Implementation of a StateOperator that provides a parent state as follows:

This Operator is used in many 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
AnyActiveStateOp()
           
 
Method Summary
 ParentState evaluate(State... states)
          Evaluate the given states.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnyActiveStateOp

public AnyActiveStateOp()
Method Detail

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