|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Lifecycle
The lifecycle of an application managed as a gCube service.
| Field Summary | |
|---|---|
static String |
failed
The event qualifier that correspond to the failed state of the service lifecycle. |
static String |
ready
The event qualifier that correspond to the ready state of the service lifecycle. |
static String |
started
The event qualifier that correspond to the started state of the service lifecycle. |
static String |
stopped
The event qualifier that correspond to the stopped state of the service lifecycle. |
| Method Summary | |
|---|---|
void |
moveTo(State state)
Transition this lifecycle to a given state. |
State |
previous()
Returns the state from which this lifecycle transitioned to its current state. |
State |
state()
Returns the current state of this lifecycle. |
void |
tryMoveTo(State state)
Attempts to transition this lifecycle to a given state, but does not fail if the transition is illegal for this lifecycle. |
| Field Detail |
|---|
static final String started
started state of the service lifecycle.
static final String ready
ready state of the service lifecycle.
static final String stopped
stopped state of the service lifecycle.
static final String failed
failed state of the service lifecycle.
| Method Detail |
|---|
State previous()
State state()
void moveTo(State state)
state - the state
IllegalStateException - if the transition is illegal for this lifecyclevoid tryMoveTo(State state)
state - the state
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||