|
Oracle Corporation | |||||||||||
| 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 be externally visible (read config data, create internal object, initialize stores, etc). |
void |
doStopped()
The plug-in should make all cleanup nessesary to be available for garbage collection. |
void |
handleForceSuspending()
Called when a FORCE STOP/SHUTDOWN have 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 it's id and a reference to it's 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 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 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 Corporation | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||