|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Contract public interface RunLevelController
Implementations of this contract are responsible for orchestration lifecycle events (i.e., start levels) in Hk2.
Each run level service is responsible for a particular class of
RunLevel
that is identified by a RunLevelControllerIndicator
value.
Implementations of this service are responsible for orchestrating
lifecycle events for services annotated with RunLevel
.
Field Summary | |
---|---|
static String |
RUNLEVEL_CONTROLLER_DEFAULT_NAME
The default run level service name. |
Method Summary | |
---|---|
Integer |
getCurrentRunLevel()
The current run level state. |
String |
getName()
Get the name of this RunLevelController. |
Integer |
getPlannedRunLevel()
The planned run level state. |
void |
interrupt()
Causes this RunLevelController to attempt to stop any in-flight proceedTo() operation. |
void |
proceedTo(int runLevel)
Causes this RunLevelController to move to the specified run level for all RunLevel instances (identified by
RunLevelControllerIndicator ), orchestrating the appropriate
lifecycle events. |
void |
recordActivation(ActiveDescriptor<?> descriptor)
Record the activation the run level service associated with the given descriptor. |
Field Detail |
---|
static final String RUNLEVEL_CONTROLLER_DEFAULT_NAME
Method Detail |
---|
void proceedTo(int runLevel)
RunLevel
instances (identified by
RunLevelControllerIndicator
), orchestrating the appropriate
lifecycle events.
If the run level specified is the same as the current run level then the RunLevelController may return immediately.
Note that the underlying implementation may perform this operation asynchronously. Implementors who choose the asynchronous approach are expected to treat a subsequent proceedTo(newRunLevel) call as an implicit cancellation of any currently running proceedTo() that is running on one or more managed threads.
runLevel
- the run level to move tovoid interrupt()
Integer getCurrentRunLevel()
Integer getPlannedRunLevel()
String getName()
void recordActivation(ActiveDescriptor<?> descriptor)
descriptor
- the descriptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |