|
Oracle Communications Services Gatekeeper Java API Reference 7.0.0.1 E96578-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 | |
abstract void |
doActivated()
The plug-in should continue activation and become visible without accepting traffic (register MBeans, etc). |
abstract void |
doDeactivated()
The plug-in should deactivate itself (unregister MBeans etc). |
abstract 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). |
abstract void |
doStopped()
The plug-in should clean up so it's available for garbage collection. |
abstract void |
handleForceSuspending()
Called when a FORCE STOP/SHUTDOWN has been issued. |
abstract void |
handleResuming()
Transitions the plug-in from ACTIVE (ADMIN) to ACTIVE (RUNNING) state where it begins to accept traffic. |
abstract void |
handleSuspending(CompletionBarrier barrier)
Called in a normal re-deployment when the plug-in is taken from ACTIVE (RUNNING) to ACTIVE (ADMIN) state. |
abstract void |
init(java.lang.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 state.public 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(java.lang.String id,
PluginPool pool)
id - The id for this plug-in service.pool - The pool associated with this plug-in. It can be used to
retrieve registered plug-in instances.
|
Oracle Communications Services Gatekeeper Java API Reference 7.0.0.1 E96578-01 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||