|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@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 |
---|
DeploymentContext prepareDeploymentContext(@NotNull Environment environment, @NotNull DeploymentVersion deploymentVersion, @NotNull TriggerReason triggerReason)
environment
- deploymentVersion
- triggerReason
- ExecutionRequestResult execute(Environment environment, @NotNull EnvironmentTriggeringAction action)
void stop(@NotNull DeploymentResult deploymentResult, Long agentId)
deploymentResult
- of the deployment we want to stopagentId
- agent on which the deployment is runningvoid processDeploymentResult(@NotNull DeploymentContext deploymentContext)
deploymentContext
- from the agent.boolean isEnvironmentBeingDeployedTo(long environmentId)
environmentId
- id of the Environment
void terminateDeployment(@NotNull DeploymentResultKey resultKey)
resultKey
- void restoreStateOfResult(@NotNull DeploymentResult deploymentResult)
deploymentResult
- a restored result
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |