Class PersistTasksStorage

    • Method Detail

      • recreatePersistTasksStorageMonitor

        public void recreatePersistTasksStorageMonitor​(long delay)
      • setTimeService

        public void setTimeService​(@NotNull
                                   TimeService timeService)
      • newTask

        public long newTask​(@NotNull
                            TaskType taskType,
                            @NotNull
                            String description)
      • newTask

        public long newTask​(@NotNull
                            String taskType,
                            @NotNull
                            String description)
      • setStage

        public void setStage​(long taskId,
                             @NotNull
                             PersistTaskStage stage)
      • markAsUpdated

        public void markAsUpdated​(long taskId)
      • getNextReadyForExecutionTasks

        @NotNull
        public List<TaskInfo> getNextReadyForExecutionTasks​(@NotNull
                                                            String taskType,
                                                            int maxTasksToReturn)
      • getUnfinishedTasks

        @NotNull
        public List<TaskInfo> getUnfinishedTasks​(@NotNull
                                                 TaskType taskType)
      • getTaskInfo

        @Nullable
        public TaskInfo getTaskInfo​(@NotNull
                                    Long taskId)
      • afterCleanup

        public void afterCleanup​(@NotNull
                                 CleanupProcessState cleanupState)
        Description copied from interface: AfterBuildsCleanupExtension
        Invoked upon finishing of the main cleanup process. At this point all data for specific builds is deleted.
        Note: This extension might not be called for every cleanup run as cleanup process can be interrupted earlier. Extension must check cleanup process state and if it is interrupted, complete its operations and return as quick as possible.
        Specified by:
        afterCleanup in interface AfterBuildsCleanupExtension
        Parameters:
        cleanupState - cleanup process state
      • getStageIndex

        public static int getStageIndex​(@NotNull
                                        PersistTaskStage stage)