|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.slee.management.SleeState
public final class SleeState
This class defines an enumerated type that encapsulates the operational state of the SLEE.
A singleton instance of each enumerated value is guaranteed (via an implementation
of readResolve() - refer java.io.Serializable),
so that equality tests using == are always evaluated correctly. (This
equality test is only guaranteed if this class is loaded in the application's boot class
path, rather than dynamically loaded at runtime.)
| Field Summary | |
|---|---|
static SleeState |
RUNNING
In the RUNNING state the SLEE and resource adaptors are generating events and the SLEE's event routing subsystem is actively creating SBBs and delivering events to them. |
static java.lang.String |
RUNNING_STRING
A string representation of the RUNNING state. |
static int |
SLEE_RUNNING
An integer representation of the RUNNING state. |
static int |
SLEE_STARTING
An integer representation of the STARTING state. |
static int |
SLEE_STOPPED
An integer representation of the STOPPED state. |
static int |
SLEE_STOPPING
An integer representation of the STOPPING state. |
static SleeState |
STARTING
The STARTING state is a transitional state between STOPPED
and RUNNING. |
static java.lang.String |
STARTING_STRING
A string representation of the STARTING state. |
static SleeState |
STOPPED
The STOPPED state is the initial state for the SLEE on startup. |
static java.lang.String |
STOPPED_STRING
A string representation of the STOPPED state. |
static SleeState |
STOPPING
The STOPPING state is a transitional state between STARTING
or RUNNING and STOPPED. |
static java.lang.String |
STOPPING_STRING
A string representation of the STOPPING state. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Compare this SLEE state for equality with another. |
static SleeState |
fromInt(int state)
Get a SleeState object from an integer value. |
static SleeState |
fromString(java.lang.String state)
Get a SleeState object from a string value. |
int |
hashCode()
Get a hash code value for this SLEE state. |
boolean |
isRunning()
Determine if this SleeState object represents the RUNNING state of the SLEE. |
boolean |
isStarting()
Determine if this SleeState object represents the STARTING state of the SLEE. |
boolean |
isStopped()
Determine if this SleeState object represents the STOPPED state of the SLEE. |
boolean |
isStopping()
Determine if this SleeState object represents the STOPPING state of the SLEE. |
int |
toInt()
Get an integer value representation for this SleeState object. |
java.lang.String |
toString()
Get the textual representation of the SLEE state object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SLEE_STOPPED
STOPPED state.
public static final int SLEE_STARTING
STARTING state.
public static final int SLEE_RUNNING
RUNNING state.
public static final int SLEE_STOPPING
STOPPING state.
public static final java.lang.String STOPPED_STRING
STOPPED state.
public static final java.lang.String STARTING_STRING
STARTING state.
public static final java.lang.String RUNNING_STRING
RUNNING state.
public static final java.lang.String STOPPING_STRING
STOPPING state.
public static final SleeState STOPPED
public static final SleeState STARTING
STOPPED
and RUNNING. When in this state, the SLEE is activating relevant
resource adaptors and performing any other tasks necessary to start event
processing. The event router is not yet started in this state.
public static final SleeState RUNNING
public static final SleeState STOPPING
STARTING
or RUNNING and STOPPED. When in this state any remaining
activities are allowed to complete without new activities being created.
| Method Detail |
|---|
public static SleeState fromInt(int state)
throws java.lang.IllegalArgumentException
SleeState object from an integer value.
state - the state as an integer.
SleeState object corresponding to state.
java.lang.IllegalArgumentException - if state is not a valid SLEE
state value.
public static SleeState fromString(java.lang.String state)
throws java.lang.NullPointerException,
java.lang.IllegalArgumentException
SleeState object from a string value.
state - the state as a string, for example as returned by the toString()
method (case insensitive).
SleeState object corresponding to state.
java.lang.NullPointerException - if state is null.
java.lang.IllegalArgumentException - if state is not a valid SLEE
state string.public int toInt()
SleeState object.
SleeState object.public boolean isStopped()
This method is effectively equivalent to the conditional test:
(this == STOPPED), ie. the code:
if (state.isStopped()) ...
is interchangeable with the code:
if (state == SleeState.STOPPED) ...
true if this object represents the STOPPED state of the SLEE,
false otherwise.public boolean isStarting()
This method is effectively equivalent to the conditional test:
(this == STARTING), ie. the code:
if (state.isStarting()) ...
is interchangeable with the code:
if (state == SleeState.STARTING) ...
true if this object represents the STARTING state of the SLEE,
false otherwise.public boolean isRunning()
This method is effectively equivalent to the conditional test:
(this == RUNNING), ie. the code:
if (state.isRunning()) ...
is interchangeable with the code:
if (state == SleeState.RUNNING) ...
true if this object represents the RUNNING state of the SLEE,
false otherwise.public boolean isStopping()
This method is effectively equivalent to the conditional test:
(this == STOPPING), ie. the code:
if (state.isStopping()) ...
is interchangeable with the code:
if (state == SleeState.STOPPING) ...
true if this object represents the STOPPING state of the SLEE,
false otherwise.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to compare this with.
true if obj is an instance of this class
representing the same SLEE state as this, false otherwise.public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||