|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<StateConditions>
org.oddjob.state.StateConditions
public enum StateConditions
These are drop in replacements for jobs that used to use
a JobState
s for conditions.
Nested Class Summary | |
---|---|
static class |
StateConditions.Conversions
The Conversion from String |
Enum Constant Summary | |
---|---|
COMPLETE
Is a job complete? |
|
DESTROYED
The job has been destroyed. |
|
EXCEPTION
Is a job in an exception state? |
|
EXECUTING
A state is either JobState.EXECUTING or
ParentState.EXECUTING or ServiceState.STARTING . |
|
FAILURE
The state is either INCOMPLETE or EXCEPTION |
|
FINISHED
The state is either COMPLETE, INCOMPLETE or EXCEPTION |
|
INCOMPLETE
Is a job incomplete? |
|
READY
Is a job ready? |
|
RUNNING
Is a job executing or otherwise active? |
|
STARTED
A service has STARTED. |
Method Summary | |
---|---|
static StateConditions |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static StateConditions[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.oddjob.state.StateCondition |
---|
test |
Enum Constant Detail |
---|
public static final StateConditions READY
public static final StateConditions RUNNING
public static final StateConditions INCOMPLETE
public static final StateConditions COMPLETE
public static final StateConditions EXCEPTION
public static final StateConditions DESTROYED
public static final StateConditions FAILURE
public static final StateConditions FINISHED
public static final StateConditions EXECUTING
JobState.EXECUTING
or
ParentState.EXECUTING
or ServiceState.STARTING
.
public static final StateConditions STARTED
Method Detail |
---|
public static StateConditions[] values()
for (StateConditions c : StateConditions.values()) System.out.println(c);
public static StateConditions valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |