Package com.atlassian.bamboo.plan.branch
Class BranchExpiryJob
- java.lang.Object
-
- com.atlassian.bamboo.plan.branch.BranchExpiryJob
-
- All Implemented Interfaces:
org.quartz.Job
public class BranchExpiryJob extends Object implements org.quartz.Job
-
-
Constructor Summary
Constructors Constructor Description BranchExpiryJob()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
cleanupExpiredDueToInactivity(ImmutableChain chain)
protected void
cleanUpExpiredVcsBranches()
void
execute(org.quartz.JobExecutionContext jobExecutionContext)
boolean
hasRegisteredCommits(ImmutableChainBranch chainBranch)
boolean
hasRegisteredCommitsAfter(ImmutableChainBranch chainBranch, Date thresholdDate)
void
setBranchCommitInformationManager(BranchCommitInformationManager branchCommitInformationManager)
void
setCachedPlanManager(CachedPlanManager cachedPlanManager)
void
setCustomVariableContext(CustomVariableContext customVariableContext)
void
setDeletionService(DeletionService deletionService)
void
setErrorUpdateHandler(ErrorUpdateHandler errorUpdateHandler)
void
setImmutablePlanCacheService(ImmutablePlanCacheService immutablePlanCacheService)
void
setVcsBranchDao(VcsBranchDao vcsBranchDao)
void
setVcsRepositoryManager(VcsRepositoryManager vcsRepositoryManager)
-
-
-
Method Detail
-
execute
public void execute(org.quartz.JobExecutionContext jobExecutionContext) throws org.quartz.JobExecutionException
- Specified by:
execute
in interfaceorg.quartz.Job
- Throws:
org.quartz.JobExecutionException
-
cleanupExpiredDueToInactivity
protected void cleanupExpiredDueToInactivity(ImmutableChain chain)
-
cleanUpExpiredVcsBranches
protected void cleanUpExpiredVcsBranches()
-
setCachedPlanManager
public void setCachedPlanManager(CachedPlanManager cachedPlanManager)
-
setImmutablePlanCacheService
public void setImmutablePlanCacheService(ImmutablePlanCacheService immutablePlanCacheService)
-
setDeletionService
public void setDeletionService(DeletionService deletionService)
-
setErrorUpdateHandler
public void setErrorUpdateHandler(ErrorUpdateHandler errorUpdateHandler)
-
setBranchCommitInformationManager
public void setBranchCommitInformationManager(BranchCommitInformationManager branchCommitInformationManager)
-
setVcsBranchDao
public void setVcsBranchDao(VcsBranchDao vcsBranchDao)
-
setCustomVariableContext
public void setCustomVariableContext(CustomVariableContext customVariableContext)
-
setVcsRepositoryManager
public void setVcsRepositoryManager(VcsRepositoryManager vcsRepositoryManager)
-
hasRegisteredCommits
public boolean hasRegisteredCommits(ImmutableChainBranch chainBranch)
-
hasRegisteredCommitsAfter
public boolean hasRegisteredCommitsAfter(ImmutableChainBranch chainBranch, Date thresholdDate)
-
-