public class DeploymentsInProgressServiceImpl extends Object implements DeploymentsInProgressService
Constructor and Description |
---|
DeploymentsInProgressServiceImpl(XStreamFactory xStreamFactory,
FeatureManager featureManager) |
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.
|
@Inject public DeploymentsInProgressServiceImpl(XStreamFactory xStreamFactory, FeatureManager featureManager)
@NotNull public @NotNull Iterable<DeploymentInProgress> getDeploymentsInProgress()
getDeploymentsInProgress
in interface DeploymentsInProgressService
public void onDeploymentTriggered(@NotNull @NotNull DeploymentResult deploymentResult, @NotNull @NotNull DeploymentVersion deploymentVersion, @NotNull @NotNull Environment environment, @NotNull @NotNull DeploymentProject deploymentProject)
onDeploymentTriggered
in interface DeploymentsInProgressService
public void onDeploymentFinished(long deploymentResultId)
onDeploymentFinished
in interface DeploymentsInProgressService
public void onDeploymentStarted(long deploymentResultId, Date date)
onDeploymentStarted
in interface DeploymentsInProgressService
public void onAgentAssigned(long deploymentResultId, long agentId)
onAgentAssigned
in interface DeploymentsInProgressService
public void onDeploymentStopped(long deploymentResultId)
onDeploymentStopped
in interface DeploymentsInProgressService
@Nullable public @Nullable DeploymentInProgress getDeploymentExecutingOnAgent(long agentId)
getDeploymentExecutingOnAgent
in interface DeploymentsInProgressService
public Optional<DeploymentInProgress> getDeploymentExecutingOnEnvironment(long environmentId)
DeploymentsInProgressService
getDeploymentExecutingOnEnvironment
in interface DeploymentsInProgressService
environmentId
- environment id@Nullable public @Nullable DeploymentInProgress getDeploymentInProgressById(long deploymentResultId)
getDeploymentInProgressById
in interface DeploymentsInProgressService
public Set<DeploymentResultKey> restoreState(@NotNull @NotNull Set<Long> restorableResultsIds)
DeploymentsInProgressService
restoreState
in interface DeploymentsInProgressService
public void detachDeploymentFromAgent(long agentId)
DeploymentsInProgressService
detachDeploymentFromAgent
in interface DeploymentsInProgressService
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.