Package org.oddjob.state

Classes for state.

See:
          Description

Interface Summary
State The state of a Stateful job.
StateChanger<S extends State> Implementations provide the ability to change something's JobState.
StateCondition Something that is able to test the condition of a State.
StateListener Implementors of this interface are able to listen to state events.
StateLock A mechanism for allowing actions to be performed synchronously with respect to state change.
StateOperator An operation that provides the result of evaluating many states.
 

Class Summary
AndState  
AndStateOp Implementation of a StateOperator that provides logical 'and' like functionality.
AnyActiveStateOp 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. This Operator is used in many Structural jobs to calculate parent state.
AssertNonDestroyed A StateOperator that ensures non of the operands are destroyed.
BaseStateChanger<S extends State> Base functionality for changing State.
CascadeJob  
CompleteOrNotOp Implementation of a StateOperator that is either complete if all the children are complete, or not.
EqualsState  
FlagState  
IfJob  
IsAnyState The StateConditions that is always true.
IsDoneOrCrashed Test if the job/service has finished or has crashed.
IsExecutable The StateConditions under witch a job is executable.
IsHardResetable The StateConditions under witch a typical job can be hard reset.
IsNot Negates a StateCondition.
IsSaveable The StateConditions that is always true.
IsSoftResetable The StateConditions under which a typical job can be soft reset.
IsStoppable The StateConditions under witch a typical job can be stopped.
JobStateChanger A StateChanger for JobStates.
JobStateConverter Provides a conversion from a State to an equivalent JobState.
JobStateHandler Helps Jobs handle state change.
JoinJob  
MirrorState  
OrderedStateChanger<S extends State> A StateChanger that uses a StateLock to ensure updates or ordered.
OrState  
OrStateOp Implementation of a StateOperator that provides logical 'and' like functionality.
ParentStateChanger A StateChanger for ParentStates.
ParentStateConverter Provides a conversion from a State to an equivalent ParentState.
ParentStateHandler Helps Structurals handle state change.
Resets  
SequentialHelper Shared utility class for deciding if a SequentialJob can continue.
ServiceManagerStateOp 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.
ServiceStateChanger A StateChanger for ServiceStates.
ServiceStateHandler Helps Services handle state change.
StateConditions.Conversions The Conversion from String
StateEvent An instance of this class is produced when a job state changes.
StateExchange Pass on state.
StateHandler<S extends State> Helps Jobs handle state change.
StateMemory A wrapper for a job that holds the state of the job after it's been executed.
StateOperators  
StateOperators.Conversions The Conversion from String.
StateReflector Base class for Jobs that are designed purely to reflect the state of their child jobs.
StructuralStateHelper Track, and aggregate the states of child jobs.
WorstStateOp 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.
 

Enum Summary
JobState Encapsulate the allowed states for a job.
ParentState Encapsulate the allowed states for a Structural.
ServiceState Encapsulate the allowed states for a service.
StateConditions These are drop in replacements for jobs that used to use a JobStates for conditions.
 

Package org.oddjob.state Description

Classes for state.