com.atlassian.bamboo.deployments.execution.service
Interface DeploymentExecutionService

All Known Implementing Classes:
DeploymentExecutionServiceImpl

@Internal
public interface DeploymentExecutionService


Method Summary
 ExecutionRequestResult execute(Environment environment, EnvironmentTriggeringAction action)
          Start DeploymentContext execution.
 boolean isEnvironmentBeingDeployedTo(long environmentId)
          Check if Environment is currently being deployed to
 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 terminateDeployment(DeploymentResultKey resultKey)
          Cleans up deployment result if execution has been terminated abrubtly.
 

Method Detail

prepareDeploymentContext

DeploymentContext prepareDeploymentContext(@NotNull
                                           Environment environment,
                                           @NotNull
                                           DeploymentVersion deploymentVersion,
                                           @NotNull
                                           TriggerReason triggerReason)
Prepare DeploymentContext out of Environment and DeploymentVersion

Parameters:
environment -
deploymentVersion -
triggerReason -

execute

ExecutionRequestResult execute(Environment environment,
                               @NotNull
                               EnvironmentTriggeringAction action)
Start DeploymentContext execution. Before putting DeploymentContext into execution pipeline this method checks if Environment is not running any other deployment.


stop

void stop(@NotNull
          DeploymentResult deploymentResult,
          Long agentId)
Stops the execution of a running deployment

Parameters:
deploymentResult - of the deployment we want to stop
agentId - agent on which the deployment is running

processDeploymentResult

void processDeploymentResult(@NotNull
                             DeploymentContext deploymentContext)
Process result that has come back from the agent.

Parameters:
deploymentContext - from the agent.

isEnvironmentBeingDeployedTo

boolean isEnvironmentBeingDeployedTo(long environmentId)
Check if Environment is currently being deployed to

Parameters:
environmentId - id of the Environment
Returns:
true if

terminateDeployment

void terminateDeployment(@NotNull
                         DeploymentResultKey resultKey)
Cleans up deployment result if execution has been terminated abrubtly.

Parameters:
resultKey -

restoreStateOfResult

void restoreStateOfResult(@NotNull
                          DeploymentResult deploymentResult)
Restores internal state of single deployment result after server restart.

Parameters:
deploymentResult - a restored result


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.