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 |
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 DeletionServicepublic void deleteProject(@NotNull
Project project)
deleteProject in interface DeletionServicepublic void deletePlan(@NotNull
Plan plan)
deletePlan in interface DeletionServicepublic void deletePlan(@NotNull
ImmutablePlan plan)
deletePlan in interface DeletionServicepublic void deletePlansIgnoringBranches(Iterable<? extends Plan> plansToDelete)
DeletionServicedeletePlansIgnoringBranches in interface DeletionServicepublic Set<PlanKey> deletePlans(Iterable<String> planKeys)
deletePlans in interface DeletionServicepublic void deleteStagesIgnoringBranchesAndJobs(Iterable<ChainStage> stagesToDelete)
DeletionServicedeleteStagesIgnoringBranchesAndJobs in interface DeletionServicepublic void deleteStage(@NotNull
ChainStage chainStage)
deleteStage in interface DeletionServicepublic void deleteStage(@NotNull
ImmutableChainStage chainStage)
DeletionServicedeleteStage in interface DeletionServicepublic void removeOrphanedBuildResults()
DeletionServiceremoveOrphanedBuildResults in interface DeletionServicepublic void executeDelayedDeletion()
DeletionServiceDeletionService.deletePlan(Plan)executeDelayedDeletion in interface DeletionServicepublic void suspendDeletions()
DeletionServicesuspendDeletions in interface DeletionServicepublic boolean suspendDeletions(long secondsToWait)
suspendDeletions in interface DeletionServicepublic void resumeDeletions()
DeletionServiceresumeDeletions in interface DeletionServiceCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.