public enum StateConditions extends java.lang.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.
|
ANY
Always true.
|
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.
|
NONE
Always false.
|
NOT_INCOMPLETE
The state is either COMPLETE or EXCEPTION.
|
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.
|
SUCCESS
A synonym for COMPLETE.
|
Modifier and Type | Method and Description |
---|---|
static StateConditions |
valueOf(java.lang.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 SUCCESS
public static final StateConditions FAILURE
public static final StateConditions NOT_INCOMPLETE
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 final StateConditions ANY
public static final StateConditions NONE
public static StateConditions[] values()
for (StateConditions c : StateConditions.values()) System.out.println(c);
public static StateConditions valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null