Class DeploymentOperation
- java.lang.Object
- 
- org.camunda.bpm.container.impl.spi.DeploymentOperation
 
- 
 public class DeploymentOperation extends java.lang.ObjectA DeploymentOperation allows bundling multiple deployment steps into a composite operation that succeeds or fails atomically. The DeploymentOperation is composed of a list of individual steps ( DeploymentOperationStep). Each step may or may not install new services into the container. If one of the steps fails, the operation makes sure that- all successfully completed steps are notified by calling their
  DeploymentOperationStep.cancelOperationStep(DeploymentOperation)method.
- all services installed in the context of the operation are removed from the container.
 - Author:
- Daniel Meyer
 
- all successfully completed steps are notified by calling their
  
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classDeploymentOperation.DeploymentOperationBuilder
 - 
Field SummaryFields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.lang.Object>attachmentsa list of attachments allows to pass state from one operation to anotherprotected DeploymentOperationStepcurrentStepprotected java.util.List<java.lang.String>installedServicesthe list of services installed by this operation.protected booleanisRollbackOnFailureprotected java.lang.Stringnamethe name of this composite operationprotected PlatformServiceContainerserviceContainerthe service containerprotected java.util.List<DeploymentOperationStep>stepsthe list of steps that make up this composite operationprotected java.util.List<DeploymentOperationStep>successfulStepsa list of steps that completed successfully
 - 
Constructor SummaryConstructors Constructor Description DeploymentOperation(java.lang.String name, PlatformServiceContainer container, java.util.List<DeploymentOperationStep> steps)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttachment(java.lang.String name, java.lang.Object value)voidaddStep(DeploymentOperationStep step)Add a new atomic step to the composite operation.voidexecute()<S> SgetAttachment(java.lang.String name)java.util.List<java.lang.String>getInstalledServices()PlatformServiceContainergetServiceContainer()protected voidrollbackOperation()voidserviceAdded(java.lang.String serviceName)
 
- 
- 
- 
Field Detail- 
nameprotected final java.lang.String name the name of this composite operation
 - 
serviceContainerprotected final PlatformServiceContainer serviceContainer the service container
 - 
stepsprotected final java.util.List<DeploymentOperationStep> steps the list of steps that make up this composite operation
 - 
successfulStepsprotected final java.util.List<DeploymentOperationStep> successfulSteps a list of steps that completed successfully
 - 
installedServicesprotected java.util.List<java.lang.String> installedServices the list of services installed by this operation. TherollbackOperation()must make sure all these services are removed if the operation fails.
 - 
attachmentsprotected java.util.Map<java.lang.String,java.lang.Object> attachments a list of attachments allows to pass state from one operation to another
 - 
isRollbackOnFailureprotected boolean isRollbackOnFailure 
 - 
currentStepprotected DeploymentOperationStep currentStep 
 
- 
 - 
Constructor Detail- 
DeploymentOperationpublic DeploymentOperation(java.lang.String name, PlatformServiceContainer container, java.util.List<DeploymentOperationStep> steps)
 
- 
 - 
Method Detail- 
getAttachmentpublic <S> S getAttachment(java.lang.String name) 
 - 
addAttachmentpublic void addAttachment(java.lang.String name, java.lang.Object value)
 - 
addSteppublic void addStep(DeploymentOperationStep step) Add a new atomic step to the composite operation. If the operation is currently executing a step, the step is added after the current step.
 - 
serviceAddedpublic void serviceAdded(java.lang.String serviceName) 
 - 
getServiceContainerpublic PlatformServiceContainer getServiceContainer() 
 - 
executepublic void execute() 
 - 
rollbackOperationprotected void rollbackOperation() 
 - 
getInstalledServicespublic java.util.List<java.lang.String> getInstalledServices() 
 
- 
 
-