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

All Known Implementing Classes:
DeploymentExecutionServiceImpl

public interface DeploymentExecutionService


Method Summary
 void execute(DeploymentContext deploymentContext)
          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 stop(DeploymentResult deploymentResult, java.lang.Long agentId)
          Stops the execution of a running deployment
 

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

void execute(@NotNull
             DeploymentContext deploymentContext)
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,
          java.lang.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


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.