public interface QBean
QPersist
Modifier and Type | Field and Description |
---|---|
static int |
DESTROYED |
static int |
FAILED |
static int |
STARTED |
static int |
STARTING |
static java.lang.String[] |
stateString |
static int |
STOPPED |
static int |
STOPPING |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
destroy the service
|
int |
getState() |
default java.lang.String |
getStateAsString() |
void |
init()
init the service
|
void |
start()
start the service
|
void |
stop()
stop the service
|
static final int STOPPED
static final int STOPPING
static final int STARTING
static final int STARTED
static final int FAILED
static final int DESTROYED
static final java.lang.String[] stateString
void init() throws java.lang.Exception
java.lang.Exception
- on errorvoid start() throws java.lang.Exception
java.lang.Exception
- on errorvoid stop() throws java.lang.Exception
java.lang.Exception
- on errorvoid destroy() throws java.lang.Exception
java.lang.Exception
- on errorint getState()
default java.lang.String getStateAsString()