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 Modifier and Type Interface Description static class
DeletionService.FireEvent
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
deleteJobsIgnoringBranches(Iterable<? extends Job> jobsToDelete)
Delete all the jobs on the list.void
deletePlan(@NotNull ImmutablePlan plan)
void
deletePlan(@NotNull Plan plan)
Deprecated.since 6.2 usedeletePlan(ImmutablePlan)
insteadSet<PlanKey>
deletePlans(Iterable<String> planKeys)
void
deleteProject(@NotNull Project project)
Set<PlanKey>
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
executeDelayedDeletion()
Cleanup data scheduled for deletion duringdeletePlan(Plan)
void
executeDelayedDeletionBlocking()
Clean up any orphaned build results lying around.void
removeOrphanedBuildResults()
Clean up any orphaned build results lying around.void
resumeDeletions()
Resumes delayed deletion.void
suspendDeletions()
Blocks until all currently deleted objects are deleted and then suspends deletions.boolean
suspendDeletions(long secondsToWait)
-
-
-
Method Detail
-
deleteProject
void deleteProject(@NotNull @NotNull Project project)
-
deletePlan
@Deprecated void deletePlan(@NotNull @NotNull Plan plan)
Deprecated.since 6.2 usedeletePlan(ImmutablePlan)
instead
-
deletePlan
void deletePlan(@NotNull @NotNull ImmutablePlan plan)
-
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 usedeleteStage(ImmutableChainStage)
instead
-
deleteStage
void deleteStage(@NotNull @NotNull ImmutableChainStage chainStage)
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
void executeDelayedDeletionBlocking()
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.
-
-