public final class BatchDeployer extends AbstractStatefulDeployer
Stateful.State
Constructor and Description |
---|
BatchDeployer(int deploySequenceId,
int[] deploySequenceIds) |
Modifier and Type | Method and Description |
---|---|
protected void |
addStateChangeListeners()
Called when the first state change listener is registered into this Deployer.
|
void |
cancelImpl(int deploySequenceId,
DeployShell shell) |
boolean |
canDeploy(int deploySequenceId)
Indicate whether the deployer (or if its a composite deployer then any of
its contained deployers) is capable of deploying the task indicated by
the DeploymentSequenceId.
|
void |
deployImpl(int deploySequenceId,
DeployShell shell) |
void |
finishImpl(int deploySequenceId,
DeployShell shell) |
Deployer[] |
getDeployers() |
void |
initializeState()
Transition from 'Uninitialized' to 'Initialized'.
|
void |
invalidateState()
Transition from 'Valid' to 'Initialized' state.
|
void |
prepareImpl(int deploySequenceId,
DeployShell shell)
Prepare each deployer.
|
void |
releaseState()
Release state and any resources its holding.
|
protected void |
removeStateChangeListeners()
Called when the last state change listener is unregistered into this Deployer.
|
java.lang.String |
toString() |
attachDisabledStateChangeListener, attachStateChangeListener, deploy, finish, fireStateChanged, fireStateInvalidated, fireStateReleased, prepare, stateLockObject
cancel, getName, getSequenceId, handleEvent, isDeploymentCancelled, throwExceptionIfCancelEventReceived
public BatchDeployer(int deploySequenceId, int[] deploySequenceIds)
public Deployer[] getDeployers()
public void prepareImpl(int deploySequenceId, DeployShell shell) throws DeployException
prepareImpl
in class AbstractDeployer
deploySequenceId
- shell
- DeployException
public void deployImpl(int deploySequenceId, DeployShell shell) throws DeployException
deployImpl
in class AbstractDeployer
DeployException
public void finishImpl(int deploySequenceId, DeployShell shell)
finishImpl
in class AbstractDeployer
public void cancelImpl(int deploySequenceId, DeployShell shell)
cancelImpl
in class AbstractDeployer
public boolean canDeploy(int deploySequenceId)
Deployer
canDeploy
in interface Deployer
canDeploy
in class AbstractDeployer
public java.lang.String toString()
toString
in class AbstractDeployer
public void initializeState() throws StateException
Stateful
initializeState
in interface Stateful
initializeState
in class AbstractStatefulDeployer
StateException
- if state could not be initialized.public void invalidateState() throws StateException
Stateful
invalidateState
in interface Stateful
invalidateState
in class AbstractStatefulDeployer
StateException
- if called on a released or uninitialized object.public void releaseState()
Stateful
releaseState
in interface Stateful
releaseState
in class AbstractStatefulDeployer
protected void addStateChangeListeners()
AbstractStatefulDeployer
addStateChangeListeners
in class AbstractStatefulDeployer
protected void removeStateChangeListeners()
AbstractStatefulDeployer
removeStateChangeListeners
in class AbstractStatefulDeployer