public interface DeploymentPlanningContext
DeploymentStep
to the current plan,
or store and retrieve attributes to transfer knowledge between multiple Contributors/Processors.Modifier and Type | Method and Description |
---|---|
void |
addCheckpoint(Step step,
Checkpoint checkpoint)
Add a checkpoint so that the state after this step has been executed can be committed.
|
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,
Checkpoint checkpoint)
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)
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.
|
Repository |
getRepository()
Returns the repository where all the ConfigurationItems known in XL Deploy are stored.
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Stores an attribute in the planning context.
|
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, Checkpoint checkpoint)
addStep(com.xebialabs.deployit.plugin.api.flow.Step)
.step
- The Step that needs to complete before we checkpointcheckpoint
- The checkpoint 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, Checkpoint checkpoint)
step
- The Step that needs to complete before we checkpointcheckpoint
- The checkpoint that needs to be committedvoid 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 attributevoid setAttribute(java.lang.String name, java.lang.Object value)
name
- the name of the attributevalue
- the value of the attributeDeployedApplication getDeployedApplication()
Repository getRepository()