Method from org.apache.geronimo.kernel.management.State Detail: |
public static State fromInt(int index) {
if (index < 0 || index >= fromInt.length) {
return null;
}
return fromInt[index];
}
Get a State from an int index |
public static State fromInteger(Integer index) {
return fromInt(index.intValue());
}
Get a State from an Integer index |
public String getEventTypeValue() {
return eventTypeValue;
}
Gets the event type that should be send after changeing to this state. |
public String getName() {
return name;
}
|
public boolean isFailed() {
return this == State.FAILED;
}
|
public boolean isRunning() {
return this == State.RUNNING;
}
|
public boolean isStopped() {
return this == State.STOPPED;
}
|
public int toInt() {
return index;
}
Gets the integer value of this state as specified in the J2EE Management specification |
public String toString() {
return name;
}
|
public static String toString(int state) {
if (state < 0 || state >= fromInt.length) {
throw new IllegalArgumentException("State must be between 0 and " + fromInt.length);
}
return fromInt[state].name;
}
|