|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StateManageable
Indicates that this Managed Object supports all the
operations and attributes to support state management.
An Managed Object implementing this interface is
termed as State Manageable Object (SMO).
An SMO generates events when its state changes.
Attention: This interface is not indented to be used by the client
but it is morely a desription of what the client will get when he/she
receives attributes from the JSR-77 server or what method can be
invoked.
All attributes (getXXX) can be received by
Management.getAttribute()
or in bulk by:
Management.getAttributes()
Methods (all except getXXX()) can be invoked by:
Management.invoke()
Field Summary | |
---|---|
static int |
CREATED
|
static int |
DESTROYED
|
static int |
FAILED
|
static int |
REGISTERED
|
static int |
RUNNING
|
static int |
STARTING
|
static int |
STOPPED
|
static int |
STOPPING
|
static int |
UNREGISTERED
|
Method Summary | |
---|---|
long |
getStartTime()
|
int |
getState()
|
String |
getStateString()
|
void |
mejbStart()
Starts this SMO which can only be invoked when the SMO is in the State stopped . |
void |
mejbStartRecursive()
Starts this SMO like start() . |
void |
mejbStop()
Stops this SMO which can only be into the running or
starting . |
Methods inherited from interface org.jboss.management.j2ee.EventProvider |
---|
getEventType, getEventTypes |
Field Detail |
---|
static final int STARTING
static final int RUNNING
static final int STOPPING
static final int STOPPED
static final int FAILED
static final int CREATED
static final int DESTROYED
static final int REGISTERED
static final int UNREGISTERED
Method Detail |
---|
long getStartTime()
int getState()
starting
, running
, stopping
,
stopped
or failed
String getStateString()
STARTING
, RUNNING
, STOPPING
,
STOPPED
or FAILED
void mejbStart()
stopped
. The SMO will go into the State started
and after it completes successfully the SMO will go to the State
running
.
The children of the SMO will not be started by this method call.
Attention: According to the specification this is named start()
but in order to avoid name conflicts this is renamed to
mejbStart(). The MEJB interface will make the conversion
from start to mejbStart to make it transparent
to the client.
void mejbStartRecursive()
start()
. After the SMO is started all
its children in the State of stopped
theirs startRecursive()
are started too.
Attention: According to the specification this is named startRecursive()
but in order to avoid name conflicts this is renamed to
mejbStartRecursive(). The MEJB interface will make the conversion
from startRecursive to mejbStartRecursive to make it transparent
to the client.
void mejbStop()
running
or
starting
. The State will change to stoping
and after it completes successfully it will go into the
State stopped
. Afterwards all its children stop()
method is called.
Attention: According to the specification this is named stop()
but in order to avoid name conflicts this is renamed to
mejbStop(). The MEJB interface will make the conversion
from stop to mejbStop to make it transparent
to the client.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |