|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ManagedLifecycle
Method Summary | |
---|---|
void |
addManagedLifecycleEventListener(ManagedLifecycleEventListener listener)
Add a managed lifecycle event listener. |
void |
destroy()
Destroy the managed instance. |
ConfigTree |
getConfig()
Get the configuration assoicated with the ManagedLifecycle. |
ManagedLifecycleState |
getState()
Get the state of the managed instance. |
void |
initialise()
Initialise the managed instance. |
void |
removeManagedLifecycleEventListener(ManagedLifecycleEventListener listener)
Remove a managed lifecycle event listener. |
void |
start()
Start the managed instance. |
void |
stop()
Stop the managed instance. |
boolean |
waitUntilDestroyed()
Wait until the managed instance has transitioned into the DESTROYED state. |
boolean |
waitUntilDestroyed(long transitionPeriod)
Wait until the managed instance has transitioned into the DESTROYED state. |
Method Detail |
---|
void initialise() throws ManagedLifecycleException
ManagedLifecycleException
- for errors during initialisation.void start() throws ManagedLifecycleException
ManagedLifecycleException
void stop() throws ManagedLifecycleException
start()
or destroy()
blocks until these resources have been
disabled.
ManagedLifecycleException
void destroy() throws ManagedLifecycleException
ManagedLifecycleException
ManagedLifecycleState getState()
boolean waitUntilDestroyed()
boolean waitUntilDestroyed(long transitionPeriod)
transitionPeriod
- The maximum delay expected for the transition, specified in milliseconds.
void addManagedLifecycleEventListener(ManagedLifecycleEventListener listener)
listener
- The listener.void removeManagedLifecycleEventListener(ManagedLifecycleEventListener listener)
listener
- The listener.ConfigTree getConfig()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |