public class DeploymentsInProgressServiceImpl extends Object implements DeploymentsInProgressService
| Constructor and Description |
|---|
DeploymentsInProgressServiceImpl(XStreamFactory xStreamFactory) |
| Modifier and Type | Method and Description |
|---|---|
DeploymentInProgress |
getDeploymentExecutingOnAgent(long agentId) |
Optional<DeploymentInProgress> |
getDeploymentExecutingOnEnvironment(long environmentId)
Retrieve optional deployment running on a given environment
|
DeploymentInProgress |
getDeploymentInProgressById(long deploymentResultId) |
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(DeploymentResult deploymentResult,
DeploymentVersion deploymentVersion,
Environment environment,
DeploymentProject deploymentProject) |
Set<DeploymentResultKey> |
restoreState(Set<Long> restorableResultsIds)
Restores runtime state of deployments after server restart.
|
public DeploymentsInProgressServiceImpl(XStreamFactory xStreamFactory)
@NotNull public Iterable<DeploymentInProgress> getDeploymentsInProgress()
getDeploymentsInProgress in interface DeploymentsInProgressServicepublic void onDeploymentTriggered(@NotNull
DeploymentResult deploymentResult,
@NotNull
DeploymentVersion deploymentVersion,
@NotNull
Environment environment,
@NotNull
DeploymentProject deploymentProject)
onDeploymentTriggered in interface DeploymentsInProgressServicepublic void onDeploymentFinished(long deploymentResultId)
onDeploymentFinished in interface DeploymentsInProgressServicepublic void onDeploymentStarted(long deploymentResultId,
Date date)
onDeploymentStarted in interface DeploymentsInProgressServicepublic void onAgentAssigned(long deploymentResultId,
long agentId)
onAgentAssigned in interface DeploymentsInProgressServicepublic void onDeploymentStopped(long deploymentResultId)
onDeploymentStopped in interface DeploymentsInProgressService@Nullable public DeploymentInProgress getDeploymentExecutingOnAgent(long agentId)
getDeploymentExecutingOnAgent in interface DeploymentsInProgressServicepublic Optional<DeploymentInProgress> getDeploymentExecutingOnEnvironment(long environmentId)
DeploymentsInProgressServicegetDeploymentExecutingOnEnvironment in interface DeploymentsInProgressServiceenvironmentId - environment id@Nullable public DeploymentInProgress getDeploymentInProgressById(long deploymentResultId)
getDeploymentInProgressById in interface DeploymentsInProgressServicepublic Set<DeploymentResultKey> restoreState(@NotNull Set<Long> restorableResultsIds)
DeploymentsInProgressServicerestoreState in interface DeploymentsInProgressServiceCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.