Interface DeploymentsInProgressService
-
- All Known Implementing Classes:
DeploymentsInProgressServiceImpl
@Internal @ThreadSafe public interface DeploymentsInProgressServiceService keeping track of running deployments for UI.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddetachDeploymentFromAgent(long agentId)Detach running deployment (if any) from an agent that was assigned to it.@Nullable DeploymentInProgressgetDeploymentExecutingOnAgent(long agentId)Optional<DeploymentInProgress>getDeploymentExecutingOnEnvironment(long environmentId)Retrieve optional deployment running on a given environment@Nullable DeploymentInProgressgetDeploymentInProgressById(long deploymentResultId)@NotNull Iterable<DeploymentInProgress>getDeploymentsInProgress()voidonAgentAssigned(long deploymentResultId, long agentId)voidonDeploymentFinished(long deploymentResultId)voidonDeploymentStarted(long deploymentResultId, Date date)voidonDeploymentStopped(long deploymentResultId)voidonDeploymentTriggered(@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.
-
-
-
Method Detail
-
getDeploymentsInProgress
@NotNull @NotNull Iterable<DeploymentInProgress> getDeploymentsInProgress()
-
onDeploymentTriggered
void onDeploymentTriggered(@NotNull @NotNull DeploymentResult deploymentResult, @NotNull @NotNull DeploymentVersion deploymentVersion, @NotNull @NotNull Environment environment, @NotNull @NotNull DeploymentProject deploymentProject)
-
onDeploymentFinished
void onDeploymentFinished(long deploymentResultId)
-
onDeploymentStarted
void onDeploymentStarted(long deploymentResultId, Date date)
-
onAgentAssigned
void onAgentAssigned(long deploymentResultId, long agentId)
-
onDeploymentStopped
void onDeploymentStopped(long deploymentResultId)
-
getDeploymentExecutingOnAgent
@Nullable @Nullable DeploymentInProgress getDeploymentExecutingOnAgent(long agentId)
-
getDeploymentExecutingOnEnvironment
Optional<DeploymentInProgress> getDeploymentExecutingOnEnvironment(long environmentId)
Retrieve optional deployment running on a given environment- Parameters:
environmentId- environment id
-
getDeploymentInProgressById
@Nullable @Nullable DeploymentInProgress getDeploymentInProgressById(long deploymentResultId)
-
restoreState
Set<DeploymentResultKey> restoreState(@NotNull @NotNull Set<Long> restorableResultsIds)
Restores runtime state of deployments after server restart.- Parameters:
restorableResultsIds-- Returns:
- keys of successfully restore results
- Since:
- 5.8
-
detachDeploymentFromAgent
void detachDeploymentFromAgent(long agentId)
Detach running deployment (if any) from an agent that was assigned to it. Makes it possible for orphaned build monitor to clean it up. On the other hand, if the deployment result is returned within grace period it can still be accepted.- Since:
- 8.0
-
-