Interface DeletionService

All Known Implementing Classes:
DeletionServiceImpl

public interface DeletionService
In order to minimize time required for object deletion it is instead marked for deletion and deleted at a later date. executeDelayedDeletion() should be called to cleanup data scheduled for deletion.
  • Method Details

    • deleteProjects

      Set<PlanKey> deleteProjects(Iterable<String> projectKeys)
    • deleteProject

      void deleteProject(@NotNull @NotNull Project project)
    • deletePlan

      @Deprecated void deletePlan(@NotNull @NotNull Plan plan)
      Deprecated.
      since 6.2 use deletePlan(ImmutablePlan) instead
    • deletePlan

      void deletePlan(@NotNull @NotNull ImmutablePlan plan)
    • deletePlans

      Set<PlanKey> deletePlans(Iterable<String> planKeys)
    • deleteStagesIgnoringBranchesAndJobs

      void deleteStagesIgnoringBranchesAndJobs(Iterable<ChainStage> stagesToDelete)
      Delete all the stages on the list. This method DOES NOT cascade to branches and jobs and only removes objects that are explicitly listed.
      Parameters:
      stagesToDelete -
    • deleteJobsIgnoringBranches

      void deleteJobsIgnoringBranches(Iterable<? extends Job> jobsToDelete)
      Delete all the jobs on the list. This method DOES NOT cascade to branches and only removes objects that are explicitly listed.
      Parameters:
      jobsToDelete -
    • deleteStage

      @Deprecated void deleteStage(@NotNull @NotNull ChainStage chainStage)
      Deprecated.
      since 6.2 use deleteStage(ImmutableChainStage) instead
    • deleteStage

      void deleteStage(@NotNull @NotNull ImmutableChainStage chainStage)
      Schedules the supplied stage for deletion.
    • executeDelayedDeletion

      void executeDelayedDeletion()
      Cleanup data scheduled for deletion during deletePlan(Plan)
    • removeOrphanedBuildResults

      void removeOrphanedBuildResults()
      Clean up any orphaned build results lying around.
    • executeDelayedDeletionBlocking

      @Deprecated void executeDelayedDeletionBlocking()
      Deprecated.
      since 9.6 use executeDelayedDeletion() instead
      Clean up any orphaned build results lying around. Blocking call if deletion lock is taken.
    • suspendDeletions

      void suspendDeletions()
      Blocks until all currently deleted objects are deleted and then suspends deletions.
    • suspendDeletions

      boolean suspendDeletions(long secondsToWait)
    • resumeDeletions

      void resumeDeletions()
      Resumes delayed deletion.