|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xbean.kernel.ServiceState
public final class 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. |
String |
getName()
The unique name of this state. |
static ServiceState |
getServiceState(int state)
Converts the state index into corresponding state name. |
static ServiceState |
parseServiceState(String state)
Converts the state name in the corresponding state index. |
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 IllegalArgumentException
state
- the state index
IllegalArgumentException
- if the state index is not 0, 1, 2 or 3public static ServiceState parseServiceState(String state)
state
- the state name
IllegalArgumentException
- if the state index is not STARTING, RUNNING, STOPPING or FAILEDpublic int getIndex()
public String getName()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |