public enum StateConditions extends Enum<StateConditions> implements StateCondition
JobState
s for conditions.Modifier and Type | Class and Description |
---|---|
static class |
StateConditions.Conversions
The Conversion from String
|
Enum Constant and Description |
---|
ACTIVE
A job that is active.
|
COMPLETE
Is a job complete?
|
DESTROYED
The job has been destroyed.
|
DONE
Like
COMPLETE but also stopped. |
ENDED
Like
FINISHED but also stopped. |
EXCEPTION
Is a job in an exception state?
|
EXECUTING
|
FAILURE
The state is either INCOMPLETE or EXCEPTION
|
FINISHED
The state is either COMPLETE, INCOMPLETE or EXCEPTION
|
INCOMPLETE
Is a job incomplete?
|
LIVE
A job that is stoppable but not executing.
|
READY
Is a job ready?
|
RUNNING
Is a job executing or otherwise active?
|
STARTED
Something, generally a service, has STARTED when it is both
complete and stoppable.
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
test
public static final StateConditions READY
public static final StateConditions EXECUTING
public static final StateConditions INCOMPLETE
public static final StateConditions COMPLETE
public static final StateConditions EXCEPTION
public static final StateConditions DESTROYED
public static final StateConditions RUNNING
public static final StateConditions FAILURE
public static final StateConditions DONE
COMPLETE
but also stopped. Applicable to services
which are complete when started.public static final StateConditions FINISHED
public static final StateConditions ENDED
FINISHED
but also stopped. Applicable to services
which are complete when started.public static final StateConditions ACTIVE
public static final StateConditions LIVE
public static final StateConditions STARTED
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 nameNullPointerException
- if the argument is null