Package org.oddjob.state
package org.oddjob.state
Classes for state.
-
ClassDescriptionImplementation of a
StateOperatorthat provides logical 'and' like functionality.Implementation of aStateOperatorthat 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 manyStructuraljobs to calculate parent state.AStateOperatorthat ensures non of the operands are destroyed.Wait for a job to start Executing.BaseStateChanger<S extends State>Base functionality for changingState.Deprecated.UseImplementation of aStateOperatorthat is either complete if all the children are complete, or not.A Stateful with just one State.Handle a destroyed state.A State made up ofStateFlags.TheStateConditions that is always true.TheStateConditions under witch a job is executable.TheStateConditions under which a typical job can be forced to the complete state.TheStateConditions under witch a typical job can be hard reset.Negates aStateCondition.TheStateConditions that is always true.TheStateConditions under which a typical job can be soft reset.TheStateConditions under witch a typical job can be stopped.Encapsulate the allowed states for a job.AStateChangerforJobStates.Helps Jobs handle state change.OrderedStateChanger<S extends State>AStateChangerthat uses aStateLockto ensure updates or ordered.Implementation of aStateOperatorthat provides logical 'and' like functionality.Encapsulate the allowed states for aStructural.AStateChangerforParentStates.Provides a conversion from aStateto an equivalentParentState.Helps Structurals handle state change.A base state operator for state evaluation using scores for different states.Shared utility class for deciding if aSequentialJobcan continue.Implementation of aStateOperatorthat 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.Encapsulate the allowed states for a service.AStateChangerforServiceStates.Helps Services handle state change.The typicalParentStateConverter.The state of aStatefuljob.StateChanger<S extends State>Implementations provide the ability to change something'sJobState.Something that is able to test the condition of aState.These are drop in replacements for jobs that used to use aJobStates for conditions.The Conversion from StringThe Detail of anStateEventwithout the source.An instance of this class is produced when a job state changes.StateExchange<T extends State>Pass on state.Flags to represent basic state.StateHandler<S extends State>Helps Jobs handle state change.Ensure a unique instant for each state.A clock that provides anStateInstant.Implementors of this interface are able to listen to state events.A mechanism for allowing actions to be performed synchronously with respect to state change.Provide a very simple test on a State.A wrapper for a job that holds the state of the job after it's been executed.An operation that provides the result of evaluating many states.ProvideStateOperators for structural jobsThe Conversion from String.Base class for Jobs that are designed purely to reflect the state of their child jobs.Track, and aggregate the states of child jobs.Implementation of aStateOperatorthat 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 byAnyActiveStateOpin mostStructuraljobs.