|
Oracle Communications Services Gatekeeper Java API Reference 5.1 E37525-01 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface that defines the lifecycle of a plug-in.
During startup the plug-in goes through these lifecycle events:
(method -> STATE): init -> NEW doStarted -> STARTED doActivated -> ACTIVE (ADMIN) handleResuming -> ACTIVE (RUNNING)
During shutdown, the plug-in goes through these lifecycle events:
(method -> STATE): handleSuspending/handleForceSuspending -> ACTIVE (ADMIN) doDeactivated -> STARTED doStopped -> NEW
| Method Summary | |
void |
doActivated()The plug-in should continue activation and become visible without accepting traffic (register MBeans, etc). |
void |
doDeactivated()The plug-in should deactivate itself (unregister MBeans etc). |
void |
doStarted()The plug-in should perform as much initialization as possible without being externally visible (read config data, create internal object, initialize stores, etc). |
void |
doStopped()The plug-in should clean up so it's available for garbage collection. |
void |
handleForceSuspending()Called when a FORCE STOP/SHUTDOWN has been issued. |
void |
handleResuming()Transitions the plug-in from ACTIVE (ADMIN) to ACTIVE (RUNNING) state where it begins to accept traffic. |
void |
handleSuspending(CompletionBarrier barrier)Called in a normal re-deployment when the plug-in is taken from ACTIVE (RUNNING) to ACTIVE (ADMIN) state. |
void |
init(String id, PluginPool pool)Initializes the plug-in service with its id and a reference to its plug-in pool. |
| Method Detail |
public void doActivated()
throws DeploymentException
DeploymentException - Exception during stop that will return the plug-in to STARTED state
public void doDeactivated()
throws DeploymentException
DeploymentException - Exception during deactivate that will return the plug-in to STARTED state
public void doStarted()
throws DeploymentException
DeploymentException - Exception during start that will cause the plug-in to be returned to NEW state.
public void doStopped()
throws DeploymentException
DeploymentException - Exception during stop that will return the plug-in to the NEW statepublic void handleForceSuspending()
public void handleResuming()
throws DeploymentException
DeploymentException - This causes the current plug-in and others that are part of the same communication service to fail the transition into ACTIVE (RUNNING) state.
public void handleSuspending(CompletionBarrier barrier)
throws DeploymentException
barrier - Used to register for a callback object that later should be called asynchronously to indicate that the plug-in has completed all in-flight traffic and is ready to be undeployed.DeploymentException - In case of internal errors.
public void init(String id,
PluginPool pool)
id - The id for this plug-in servicepool - The pool associated with this plug-in. It can be used to retrieve registered plug-in instances.
|
Oracle Communications Services Gatekeeper Java API Reference 5.1 E37525-01 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||