public abstract class AbstractStatefulDeployer extends AbstractDeployer implements StatefulDeployer
Any changes in the state of its own objects should be propagated to any state change listeners by calling one of the fireStateXXXX() methods.
Stateful.State| Constructor and Description |
|---|
AbstractStatefulDeployer(int sequence) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addStateChangeListeners()
Called when the first state change listener is registered into this Deployer.
|
StatefulDeployer.Handle |
attachDisabledStateChangeListener(java.lang.Object listener) |
StatefulDeployer.Handle |
attachStateChangeListener(java.lang.Object listener)
Attaches a listener for events from the
DeployerStateChange category. |
void |
deploy(int deploySequenceId,
DeployShell shell)
Do the actual deployment task.
|
void |
finish(int deploySequenceId,
DeployShell shell)
Called after the entire Deployment process has completed, perform any cleanup
operations here.
|
protected void |
fireStateChanged() |
protected void |
fireStateInvalidated() |
protected void |
fireStateReleased() |
void |
initializeState()
Transition from 'Uninitialized' to 'Initialized'.
|
void |
invalidateState()
Transition from 'Valid' to 'Initialized' state.
|
void |
prepare(int deploySequenceId,
DeployShell shell)
Called to do any preparatory work before the actual deployment takes
place.
|
void |
releaseState()
Release state and any resources its holding.
|
protected void |
removeStateChangeListeners()
Called when the last state change listener is unregistered into this Deployer.
|
protected java.lang.Object |
stateLockObject() |
cancel, cancelImpl, canDeploy, deployImpl, finishImpl, getName, getSequenceId, handleEvent, isDeploymentCancelled, prepareImpl, throwExceptionIfCancelEventReceived, toStringpublic void prepare(int deploySequenceId,
DeployShell shell)
throws DeployException
Deployerprepare in interface Deployerprepare in class AbstractDeployerDeployExceptionpublic void finish(int deploySequenceId,
DeployShell shell)
Deployerfinish in interface Deployerfinish in class AbstractDeployerpublic StatefulDeployer.Handle attachStateChangeListener(java.lang.Object listener)
StatefulDeployerDeployerStateChange category.attachStateChangeListener in interface StatefulDeployerpublic void deploy(int deploySequenceId,
DeployShell shell)
throws DeployException
Deployerdeploy in interface Deployerdeploy in class AbstractDeployerDeployExceptionpublic StatefulDeployer.Handle attachDisabledStateChangeListener(java.lang.Object listener)
attachDisabledStateChangeListener in interface StatefulDeployerprotected java.lang.Object stateLockObject()
public void initializeState()
StatefulinitializeState in interface Statefulpublic void invalidateState()
StatefulinvalidateState in interface Statefulpublic void releaseState()
StatefulreleaseState in interface Statefulprotected void fireStateChanged()
protected void fireStateInvalidated()
protected void fireStateReleased()
protected void addStateChangeListeners()
protected void removeStateChangeListeners()