public interface StateManageable
Modifier and Type | Field and Description |
---|---|
static int |
STATE_FAILED
This state indicates that the StateManageable Object is in a failed
state and intervention is required to restore the managed object.
|
static int |
STATE_RUNNING
This is the normal running state for an SMO.
|
static int |
STATE_STARTING
This state indicates that the SMO has been requested to start,
and is in the process of starting.
|
static int |
STATE_STOPPED
This state indicates that the StateManageable Object has stopped
and can be restarted.
|
static int |
STATE_STOPPING
This state indicates that the SMO has been requested to stop,
and is in the process of stopping.
|
Modifier and Type | Method and Description |
---|---|
long |
getstartTime()
The time that the managed object was started represented as a
long which value is the number of milliseconds since
January 1, 1970, 00:00:00.
|
int |
getstate()
The current state of this SMO.
|
void |
start()
Starts the SMO.
|
void |
startRecursive()
Starts the SMO.
|
void |
stop()
Stops the SMO.
|
static final int STATE_STARTING
static final int STATE_RUNNING
static final int STATE_STOPPING
static final int STATE_STOPPED
static final int STATE_FAILED
@ManagedAttribute int getstate()
Note that the Attribute name is case-sensitive "state" as defined by JSR 77.
@ManagedAttribute long getstartTime()
Note that the Attribute name is case-sensitive "startTime" as defined by JSR 77.
@ManagedOperation void start()
@ManagedOperation void startRecursive()
@ManagedOperation void stop()
Copyright © 2019. All rights reserved.