public class DeploymentExecutionServiceImpl extends Object implements DeploymentExecutionService
| Constructor and Description |
|---|
DeploymentExecutionServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
ExecutionRequestResult |
execute(Environment environment,
EnvironmentTriggeringAction action)
Start DeploymentContext execution.
|
boolean |
isEnvironmentBeingDeployedTo(long environmentId)
Check if Environment is currently being deployed to
|
void |
onDeploymentFinished(DeploymentTimingPoints.ExecutionFinished timingPoint) |
DeploymentContext |
prepareDeploymentContext(Environment environment,
DeploymentVersion deploymentVersion,
TriggerReason triggerReason)
Prepare DeploymentContext out of Environment and DeploymentVersion
|
void |
processDeploymentResult(DeploymentContext deploymentContext)
Process result that has come back from the agent.
|
void |
restoreStateOfResult(DeploymentResult deploymentResult)
Restores internal state of single deployment result after server restart.
|
void |
stop(DeploymentResult deploymentResult,
Long agentId)
Stops the execution of a running deployment
|
void |
stop(long environmentId)
Stops the execution of a deployment running on an Environment
|
void |
terminateDeployment(DeploymentResultKey resultKey)
Cleans up deployment result if execution has been terminated abrubtly.
|
public DeploymentContext prepareDeploymentContext(@NotNull Environment environment, @NotNull DeploymentVersion deploymentVersion, @NotNull TriggerReason triggerReason)
DeploymentExecutionServiceprepareDeploymentContext in interface DeploymentExecutionServicepublic ExecutionRequestResult execute(Environment environment, @NotNull EnvironmentTriggeringAction action)
DeploymentExecutionServiceexecute in interface DeploymentExecutionServicepublic void stop(long environmentId)
DeploymentExecutionServicestop in interface DeploymentExecutionServiceenvironmentId - id of the Environmentpublic void stop(@NotNull
DeploymentResult deploymentResult,
Long agentId)
DeploymentExecutionServicestop in interface DeploymentExecutionServicedeploymentResult - of the deployment we want to stopagentId - agent on which the deployment is runningpublic void terminateDeployment(@NotNull
DeploymentResultKey resultKey)
DeploymentExecutionServiceterminateDeployment in interface DeploymentExecutionServicepublic void processDeploymentResult(@NotNull
DeploymentContext deploymentContext)
DeploymentExecutionServiceprocessDeploymentResult in interface DeploymentExecutionServicedeploymentContext - from the agent.public boolean isEnvironmentBeingDeployedTo(long environmentId)
DeploymentExecutionServiceisEnvironmentBeingDeployedTo in interface DeploymentExecutionServiceenvironmentId - id of the Environmentpublic void restoreStateOfResult(@NotNull
DeploymentResult deploymentResult)
DeploymentExecutionServicerestoreStateOfResult in interface DeploymentExecutionServicedeploymentResult - a restored result@EventListener
public void onDeploymentFinished(@NotNull
DeploymentTimingPoints.ExecutionFinished timingPoint)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.