Interface DeploymentsInProgressService

  • All Known Implementing Classes:
    DeploymentsInProgressServiceImpl

    @Internal
    @ThreadSafe
    public interface DeploymentsInProgressService
    Service keeping track of running deployments for UI.
    • Method Detail

      • 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