@Internal @ThreadSafe public interface DeploymentsInProgressService
Modifier and Type | Method and Description |
---|---|
void |
detachDeploymentFromAgent(long agentId)
Detach running deployment (if any) from an agent that was assigned to it.
|
@Nullable DeploymentInProgress |
getDeploymentExecutingOnAgent(long agentId) |
Optional<DeploymentInProgress> |
getDeploymentExecutingOnEnvironment(long environmentId)
Retrieve optional deployment running on a given environment
|
@Nullable DeploymentInProgress |
getDeploymentInProgressById(long deploymentResultId) |
@NotNull Iterable<DeploymentInProgress> |
getDeploymentsInProgress() |
void |
onAgentAssigned(long deploymentResultId,
long agentId) |
void |
onDeploymentFinished(long deploymentResultId) |
void |
onDeploymentStarted(long deploymentResultId,
Date date) |
void |
onDeploymentStopped(long deploymentResultId) |
void |
onDeploymentTriggered(@NotNull DeploymentResult deploymentResult,
@NotNull DeploymentVersion deploymentVersion,
@NotNull Environment environment,
@NotNull DeploymentProject deploymentProject) |
Set<DeploymentResultKey> |
restoreState(@NotNull Set<Long> restorableResultsIds)
Restores runtime state of deployments after server restart.
|
@NotNull @NotNull Iterable<DeploymentInProgress> getDeploymentsInProgress()
void onDeploymentTriggered(@NotNull @NotNull DeploymentResult deploymentResult, @NotNull @NotNull DeploymentVersion deploymentVersion, @NotNull @NotNull Environment environment, @NotNull @NotNull DeploymentProject deploymentProject)
void onDeploymentFinished(long deploymentResultId)
void onDeploymentStarted(long deploymentResultId, Date date)
void onAgentAssigned(long deploymentResultId, long agentId)
void onDeploymentStopped(long deploymentResultId)
@Nullable @Nullable DeploymentInProgress getDeploymentExecutingOnAgent(long agentId)
Optional<DeploymentInProgress> getDeploymentExecutingOnEnvironment(long environmentId)
environmentId
- environment id@Nullable @Nullable DeploymentInProgress getDeploymentInProgressById(long deploymentResultId)
Set<DeploymentResultKey> restoreState(@NotNull @NotNull Set<Long> restorableResultsIds)
restorableResultsIds
- void detachDeploymentFromAgent(long agentId)
Copyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.