|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xbean.kernel.ServiceState
The state of services within the Kernel. The state model is directly adapted from the J2EE Management Specification (JSR 77) with the removal of the FAILED state.
Field Summary | |
static ServiceState |
RUNNING
This state indicates that the service is in the normal operational state. |
static ServiceState |
STARTING
This state indicates that the service is attempting to start but has not fully started yet. |
static ServiceState |
STOPPED
This state indicates that the service is stopped and not operational. |
static ServiceState |
STOPPING
This state indicates that the service is attempting to stop but has not fully stopped yet. |
Method Summary | |
int |
getIndex()
Gets the unique index of this state. |
java.lang.String |
getName()
The unique name of this state. |
static ServiceState |
getServiceState(int state)
Converts the state index into corresponding state name. |
static ServiceState |
parseServiceState(java.lang.String state)
Converts the state name in the corresponding state index. |
java.lang.String |
toString()
Returns the name of this state. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final ServiceState STARTING
public static final ServiceState RUNNING
public static final ServiceState STOPPING
public static final ServiceState STOPPED
Method Detail |
public static ServiceState getServiceState(int state) throws java.lang.IllegalArgumentException
state
- the state index
java.lang.IllegalArgumentException
- if the state index is not 0, 1, 2 or 3public static ServiceState parseServiceState(java.lang.String state)
state
- the state name
java.lang.IllegalArgumentException
- if the state index is not STARTING, RUNNING, STOPPING or FAILEDpublic int getIndex()
public java.lang.String getName()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |