Interface DeploymentsInProgressService
- All Known Implementing Classes:
DeploymentsInProgressServiceImpl
@Internal
@ThreadSafe
public interface DeploymentsInProgressService
Service keeping track of running deployments for UI.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
detachDeploymentFromAgent
(long agentId) Detach running deployment (if any) from an agent that was assigned to it.@Nullable DeploymentInProgress
getDeploymentExecutingOnAgent
(long agentId) getDeploymentExecutingOnEnvironment
(long environmentId) Retrieve optional deployment running on a given environment@Nullable DeploymentInProgress
getDeploymentInProgressById
(long deploymentResultId) @NotNull Iterable<DeploymentInProgress>
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) restoreState
(@NotNull Set<Long> restorableResultsIds) Restores runtime state of deployments after server restart.
-
Method Details
-
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
-
onAgentAssigned
void onAgentAssigned(long deploymentResultId, long agentId) -
onDeploymentStopped
void onDeploymentStopped(long deploymentResultId) -
getDeploymentExecutingOnAgent
-
getDeploymentExecutingOnEnvironment
Retrieve optional deployment running on a given environment- Parameters:
environmentId
- environment id
-
getDeploymentInProgressById
-
restoreState
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
-