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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteJobsIgnoringBranches(Iterable<? extends Job> jobsToDelete) Delete all the jobs on the list.voiddeletePlan(@NotNull ImmutablePlan plan) voiddeletePlan(@NotNull Plan plan) Deprecated.deletePlans(Iterable<String> planKeys) voiddeleteProject(@NotNull Project project) deleteProjects(Iterable<String> projectKeys) voiddeleteStage(@NotNull ImmutableChainStage chainStage) Schedules the supplied stage for deletion.voiddeleteStage(@NotNull ChainStage chainStage) Deprecated.since 6.2 usedeleteStage(ImmutableChainStage)insteadvoiddeleteStagesIgnoringBranchesAndJobs(Iterable<ChainStage> stagesToDelete) Delete all the stages on the list.voidCleanup data scheduled for deletion duringdeletePlan(Plan)voidDeprecated.since 9.6 useexecuteDelayedDeletion()insteadvoidClean up any orphaned build results lying around.voidResumes delayed deletion.voidBlocks until all currently deleted objects are deleted and then suspends deletions.booleansuspendDeletions(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