Package com.atlassian.bamboo.deletion
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.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteJobsIgnoringBranches
(Iterable<? extends Job> jobsToDelete) Delete all the jobs on the list.void
deletePlan
(@NotNull ImmutablePlan plan) void
deletePlan
(@NotNull Plan plan) Deprecated.deletePlans
(Iterable<String> planKeys) void
deleteProject
(@NotNull Project project) deleteProjects
(Iterable<String> projectKeys) void
deleteStage
(@NotNull ImmutableChainStage chainStage) Schedules the supplied stage for deletion.void
deleteStage
(@NotNull ChainStage chainStage) Deprecated.since 6.2 usedeleteStage(ImmutableChainStage)
insteadvoid
deleteStagesIgnoringBranchesAndJobs
(Iterable<ChainStage> stagesToDelete) Delete all the stages on the list.void
Cleanup data scheduled for deletion duringdeletePlan(Plan)
void
Deprecated.since 9.6 useexecuteDelayedDeletion()
insteadvoid
Clean up any orphaned build results lying around.void
Resumes delayed deletion.void
Blocks until all currently deleted objects are deleted and then suspends deletions.boolean
suspendDeletions
(long secondsToWait)
-
Method Details
-
deleteProjects
-
deleteProject
-
deletePlan
Deprecated.since 6.2 usedeletePlan(ImmutablePlan)
instead -
deletePlan
-
deletePlans
-
deleteStagesIgnoringBranchesAndJobs
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
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.since 6.2 usedeleteStage(ImmutableChainStage)
instead -
deleteStage
Schedules the supplied stage for deletion. -
executeDelayedDeletion
void executeDelayedDeletion()Cleanup data scheduled for deletion duringdeletePlan(Plan)
-
removeOrphanedBuildResults
void removeOrphanedBuildResults()Clean up any orphaned build results lying around. -
executeDelayedDeletionBlocking
Deprecated.since 9.6 useexecuteDelayedDeletion()
insteadClean 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.
-
deletePlan(ImmutablePlan)
instead