public enum ServiceState extends java.lang.Enum<ServiceState> implements State
Enum Constant and Description |
---|
DESTROYED
The service has been destroyed.
|
EXCEPTION
Indicates an exception has occurred.
|
STARTABLE
The service can be started.
|
STARTED
Indicates the service has started and is now available to service
requests.
|
STARTING
Indicates the service is starting.
|
STOPPED
The service is stopped.
|
Modifier and Type | Method and Description |
---|---|
static ServiceState |
stateFor(java.lang.String state)
Utility function to convert a state text to to the JobState.
|
static ServiceState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ServiceState[] |
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
isComplete, isDestroyed, isException, isExecuting, isIncomplete, isReady, isStoppable
public static final ServiceState STARTABLE
Note that this state is needed in addition
to STOPPED
to tie in with state transitions of job states.
Without this state, an EXCEPTION
state would reset to
STOPPED
which could cause a parent sequence to complete
which would be counter intuitive compared to the behaviour of
job states.
public static final ServiceState STARTING
public static final ServiceState STARTED
public static final ServiceState STOPPED
public static final ServiceState EXCEPTION
public static final ServiceState DESTROYED
public static ServiceState[] values()
for (ServiceState c : ServiceState.values()) System.out.println(c);
public static ServiceState 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 nullpublic static ServiceState stateFor(java.lang.String state)
state
- Case insensitive text.