|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ServiceState>
org.oddjob.state.ServiceState
public enum ServiceState
Encapsulate the allowed states for a service.
Enum Constant Summary | |
---|---|
COMPLETE
Indicates service has stopped. |
|
DESTROYED
The service has been destroyed. |
|
EXCEPTION
Indicates an exception has occurred. |
|
READY
Indicates the service is ready to be started. |
|
STARTED
Indicates the service has started and is now available to service requests. |
|
STARTING
Indicates the service is starting. |
Method Summary | |
---|---|
static ServiceState |
stateFor(String state)
Utility function to convert a state text to to the JobState. |
static ServiceState |
valueOf(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. |
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.State |
---|
isComplete, isDestroyed, isDone, isException, isIncomplete, isReady, isStoppable |
Enum Constant Detail |
---|
public static final ServiceState READY
public static final ServiceState STARTING
public static final ServiceState STARTED
public static final ServiceState COMPLETE
public static final ServiceState EXCEPTION
public static final ServiceState DESTROYED
Method Detail |
---|
public static ServiceState[] values()
for (ServiceState c : ServiceState.values()) System.out.println(c);
public static ServiceState 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 nullpublic static ServiceState stateFor(String state)
state
- Case insensitive text.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |