public class DeletionServiceImpl extends Object implements DeletionService
DeletionService.FireEvent
Constructor and Description |
---|
DeletionServiceImpl(PlanScheduler planScheduler,
com.atlassian.event.api.EventPublisher eventPublisher,
ResultsSummaryManager resultsSummaryManager,
ProjectManager projectManager,
PlanManager planManager,
ChainStageDao chainStageDao,
com.atlassian.plugin.PluginAccessor pluginAccessor,
ArtifactDefinitionManager artifactDefinitionManager,
ArtifactSubscriptionManager artifactSubscriptionManager,
AuditLogService auditLogService,
StopBuildManager stopBuildManager,
AgentAssignmentService agentAssignmentService) |
Modifier and Type | Method and Description |
---|---|
void |
deletePlan(ImmutablePlan plan) |
void |
deletePlan(Plan plan) |
Set<PlanKey> |
deletePlans(Iterable<String> planKeys) |
void |
deletePlansIgnoringBranches(Iterable<? extends Plan> plansToDelete)
Delete all the plans on the list.
|
void |
deleteProject(Project project) |
Set<PlanKey> |
deleteProjects(Iterable<String> projectKeys) |
void |
deleteStage(ChainStage chainStage) |
void |
deleteStage(ImmutableChainStage chainStage)
Schedules the supplied stage for deletion.
|
void |
deleteStagesIgnoringBranchesAndJobs(Iterable<ChainStage> stagesToDelete)
Delete all the stages on the list.
|
void |
executeDelayedDeletion()
Cleanup data scheduled for deletion during
DeletionService.deletePlan(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) |
public DeletionServiceImpl(PlanScheduler planScheduler, com.atlassian.event.api.EventPublisher eventPublisher, ResultsSummaryManager resultsSummaryManager, ProjectManager projectManager, PlanManager planManager, ChainStageDao chainStageDao, com.atlassian.plugin.PluginAccessor pluginAccessor, ArtifactDefinitionManager artifactDefinitionManager, ArtifactSubscriptionManager artifactSubscriptionManager, AuditLogService auditLogService, StopBuildManager stopBuildManager, AgentAssignmentService agentAssignmentService)
public Set<PlanKey> deleteProjects(Iterable<String> projectKeys)
deleteProjects
in interface DeletionService
public void deleteProject(@NotNull Project project)
deleteProject
in interface DeletionService
public void deletePlan(@NotNull Plan plan)
deletePlan
in interface DeletionService
public void deletePlan(@NotNull ImmutablePlan plan)
deletePlan
in interface DeletionService
public void deletePlansIgnoringBranches(Iterable<? extends Plan> plansToDelete)
DeletionService
deletePlansIgnoringBranches
in interface DeletionService
public Set<PlanKey> deletePlans(Iterable<String> planKeys)
deletePlans
in interface DeletionService
public void deleteStagesIgnoringBranchesAndJobs(Iterable<ChainStage> stagesToDelete)
DeletionService
deleteStagesIgnoringBranchesAndJobs
in interface DeletionService
public void deleteStage(@NotNull ChainStage chainStage)
deleteStage
in interface DeletionService
public void deleteStage(@NotNull ImmutableChainStage chainStage)
DeletionService
deleteStage
in interface DeletionService
public void removeOrphanedBuildResults()
DeletionService
removeOrphanedBuildResults
in interface DeletionService
public void executeDelayedDeletion()
DeletionService
DeletionService.deletePlan(Plan)
executeDelayedDeletion
in interface DeletionService
public void executeDelayedDeletionBlocking()
DeletionService
executeDelayedDeletionBlocking
in interface DeletionService
public void suspendDeletions()
DeletionService
suspendDeletions
in interface DeletionService
public boolean suspendDeletions(long secondsToWait)
suspendDeletions
in interface DeletionService
public void resumeDeletions()
DeletionService
resumeDeletions
in interface DeletionService
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.