|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.kernel.management.State
public final class State
This class contains a type safe enumeration of the states from the J2EE Management specification.
Field Summary | |
---|---|
static State |
FAILED
|
static int |
FAILED_INDEX
|
static State |
RUNNING
|
static int |
RUNNING_INDEX
|
static State |
STARTING
|
static int |
STARTING_INDEX
|
static State |
STOPPED
|
static int |
STOPPED_INDEX
|
static State |
STOPPING
|
static int |
STOPPING_INDEX
|
Method Summary | |
---|---|
static State |
fromInt(int index)
Get a State from an int index |
static State |
fromInteger(Integer index)
Get a State from an Integer index |
String |
getEventTypeValue()
Gets the event type that should be send after changeing to this state. |
String |
getName()
|
boolean |
isFailed()
|
boolean |
isRunning()
|
boolean |
isStopped()
|
int |
toInt()
Gets the integer value of this state as specified in the J2EE Management specification |
String |
toString()
|
static String |
toString(int state)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int STARTING_INDEX
public static final int RUNNING_INDEX
public static final int STOPPING_INDEX
public static final int STOPPED_INDEX
public static final int FAILED_INDEX
public static final State STARTING
public static final State RUNNING
public static final State STOPPING
public static final State STOPPED
public static final State FAILED
Method Detail |
---|
public static State fromInt(int index)
index
- int index of the state
public static State fromInteger(Integer index)
index
- Integer index of the state
public static String toString(int state)
public int toInt()
public String getEventTypeValue()
public String getName()
public boolean isRunning()
public boolean isStopped()
public boolean isFailed()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |