|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DeploymentPlanningContext
Context that is passed along during the Planning stage of a Deployment. This can be used to add DeploymentStep to the current plan,
or store and retrieve attributes to transfer knowledge between multiple Contributors/Processors.
| Method Summary | |
|---|---|
void |
addCheckpoint(Step step,
Delta delta)
Add a checkpoint so that the state after this step has been executed can be committed. |
void |
addCheckpoint(Step step,
Delta delta,
Operation overrideOperation)
Add a checkpoint so that the state after this step has been executed can be committed. |
void |
addCheckpoint(Step step,
java.lang.Iterable<Delta> deltas)
Add a checkpoint so that the state after this step has been executed can be committed. |
void |
addStep(DeploymentStep step)
Deprecated. Use Step instead of DeploymentStep |
void |
addStep(Step step)
Add a step to the current plan. |
void |
addSteps(java.util.Collection<DeploymentStep> steps)
Deprecated. Use Step instead of DeploymentStep |
void |
addSteps(DeploymentStep... steps)
Deprecated. Use Step instead of DeploymentStep |
void |
addSteps(java.lang.Iterable<Step> steps)
Add multiple steps to the current plan. |
void |
addSteps(Step... steps)
Add multiple steps to the current plan. |
void |
addStepWithCheckpoint(Step step,
Delta delta)
Add a step and register a checkpoint so that the state after this step has been executed can be committed. |
void |
addStepWithCheckpoint(Step step,
Delta delta,
Operation overrideOperation)
Add a step and register a checkpoint so that the state after this step has been executed can be committed. |
void |
addStepWithCheckpoint(Step step,
java.lang.Iterable<Delta> deltas)
Add a step and register a checkpoint so that the state after this step has been executed can be committed. |
java.lang.Object |
getAttribute(java.lang.String name)
Returns the planning context attribute with the given name, or null if there is no attribute by that name. |
DeployedApplication |
getDeployedApplication()
Returns the DeployedApplication for which the plan is being created. |
ReadOnlyRepository |
getRepository()
Returns a read-only view of the repository of Deployit. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Stores an attribute in the planning context. |
| Method Detail |
|---|
void addStep(DeploymentStep step)
step - the step to add.void addSteps(DeploymentStep... steps)
steps - the steps to add.void addSteps(java.util.Collection<DeploymentStep> steps)
steps - the steps to add.void addStep(Step step)
step - the step to add.void addSteps(Step... steps)
steps - the steps to add.void addSteps(java.lang.Iterable<Step> steps)
steps - the steps to add.
void addCheckpoint(Step step,
Delta delta)
addStep(com.xebialabs.deployit.plugin.api.flow.Step).
step - The Step that needs to complete before we checkpointdelta - The Delta that needs to be checkpointed.
void addCheckpoint(Step step,
Delta delta,
Operation overrideOperation)
addStep(com.xebialabs.deployit.plugin.api.flow.Step).
step - The Step that needs to complete before we checkpointdelta - The Delta that needs to be checkpointed.overrideOperation - The operation that is actually performed on the Delta, useful in case of split implementations of Update Delta's (ie. DESTROY -> CREATE).
void addCheckpoint(Step step,
java.lang.Iterable<Delta> deltas)
addStep(com.xebialabs.deployit.plugin.api.flow.Step).
step - The Step that needs to complete before we checkpointdeltas - The Deltas that need to be checkpointed.
void addStepWithCheckpoint(Step step,
Delta delta)
step - The Step that needs to complete before we checkpointdelta - The Delta that needs to be checkpointed.
void addStepWithCheckpoint(Step step,
Delta delta,
Operation overrideOperation)
step - The Step that needs to complete before we checkpointdelta - The Delta that needs to be checkpointed.overrideOperation - The operation that is actually performed on the Delta, useful in case of split implementations of Update Delta's (ie. DESTROY -> CREATE).
void addStepWithCheckpoint(Step step,
java.lang.Iterable<Delta> deltas)
step - The Step that needs to complete before we checkpointdeltas - The Deltas that need to be checkpointed.java.lang.Object getAttribute(java.lang.String name)
name - the name of the attribute
void setAttribute(java.lang.String name,
java.lang.Object value)
name - the name of the attributevalue - the value of the attributeDeployedApplication getDeployedApplication()
ReadOnlyRepository getRepository()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||