|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.slee.management.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 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 SleeState |
STOPPED
The STOPPED state is the initial state for the SLEE on startup. |
static SleeState |
STOPPING
The STOPPING state is a transitional state between STARTING
or RUNNING and STOPPED . |
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. |
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 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
state value.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.Object
obj
- 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.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |