Interface DeploymentsInProgressService
-
- All Known Implementing Classes:
DeploymentsInProgressServiceImpl
@Internal @ThreadSafe public interface DeploymentsInProgressService
Service keeping track of running deployments for UI.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
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
-
-