Package org.craftercms.deployer.api
Class Deployment
java.lang.Object
org.craftercms.deployer.api.Deployment
Represents a deployment. Contains every important status information of a particular deployment execution.
- Author:
- avasquez
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ChangeSetprotected ZonedDateTimeprotected Lockprotected Deployment.Modeprotected List<ProcessorExecution> protected ZonedDateTimeprotected Deployment.Statusprotected Target -
Constructor Summary
ConstructorsConstructorDescriptionDeployment(Target target) Deployment(Target target, Map<String, Object> params) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a param that can be used by processors during the deployment.voidAdds aProcessorExecutionto the list.voidend(Deployment.Status status) Ends the deployment with the specified status.Returns the change set of the deployment.Returns the duration of the deployment.getEnd()Returns the end date of the deployment.getMode()Returns a param that can be used by processors during the deployment.Returns the list ofProcessorExecutions.getStart()Returns the start date of the deployment.Returns the status of the deployment, either success or failure.Returns theTargetbeing deployed.booleanReturns true if the change set is null or empty.booleanReturns true if the deployment is still running.voidremoveParam(String name) Removes the specified paramvoidsetChangeSet(ChangeSet changeSet) Sets the change set of the deployment.voidstart()Starts the deployment.toString()
-
Field Details
-
target
-
start
-
end
-
status
-
changeSet
-
processorExecutions
-
params
-
lock
-
mode
-
-
Constructor Details
-
Deployment
-
Deployment
-
-
Method Details
-
getTarget
Returns theTargetbeing deployed. -
getStart
Returns the start date of the deployment. -
getEnd
Returns the end date of the deployment. -
isRunning
public boolean isRunning()Returns true if the deployment is still running. -
getDuration
Returns the duration of the deployment. -
getStatus
Returns the status of the deployment, either success or failure. -
getMode
-
getChangeSet
Returns the change set of the deployment. -
setChangeSet
Sets the change set of the deployment. -
isChangeSetEmpty
public boolean isChangeSetEmpty()Returns true if the change set is null or empty. -
start
public void start()Starts the deployment. -
end
Ends the deployment with the specified status. -
getProcessorExecutions
Returns the list ofProcessorExecutions. -
addProcessorExecution
Adds aProcessorExecutionto the list. -
addParam
Adds a param that can be used by processors during the deployment.- Parameters:
name- the name of the paramvalue- the value of the param
-
getParam
Returns a param that can be used by processors during the deployment.- Parameters:
name- the name of the param- Returns:
- the value of the param
-
removeParam
Removes the specified param- Parameters:
name- the name of the param
-
toString
-