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