Package com.atlassian.bamboo.plan.branch
Class BranchExpiryJob
java.lang.Object
com.atlassian.bamboo.quartz.cluster.ClusterAwareJob
com.atlassian.bamboo.plan.branch.BranchExpiryJob
- All Implemented Interfaces:
org.quartz.Job
-
Field Summary
Fields inherited from class com.atlassian.bamboo.quartz.cluster.ClusterAwareJob
SCHEDULED_DURATION_BETWEEN_EXECUTIONS_CRON_CONST, SCHEDULED_DURATION_BETWEEN_EXECUTIONS_SECONDS_CONST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidvoidexecuteBody(org.quartz.JobExecutionContext jobExecutionContext) This is the job real work to be performed.protected JobExecutionModeDetermines the execution mode for this job.booleanhasRegisteredCommits(ImmutableChainBranch chainBranch) booleanhasRegisteredCommitsAfter(ImmutableChainBranch chainBranch, Date thresholdDate) voidsetBranchCommitInformationManager(BranchCommitInformationManager branchCommitInformationManager) voidsetCachedPlanManager(CachedPlanManager cachedPlanManager) voidsetCustomVariableContext(CustomVariableContext customVariableContext) voidsetDeletionService(DeletionService deletionService) voidsetErrorUpdateHandler(ErrorUpdateHandler errorUpdateHandler) voidsetImmutablePlanCacheService(ImmutablePlanCacheService immutablePlanCacheService) voidsetVcsBranchDao(VcsBranchDao vcsBranchDao) voidsetVcsRepositoryManager(VcsRepositoryManager vcsRepositoryManager) Methods inherited from class com.atlassian.bamboo.quartz.cluster.ClusterAwareJob
execute, extractDurationBetweenExecutionsSeconds, getDurationBetweenExecutionsInSeconds
-
Constructor Details
-
BranchExpiryJob
public BranchExpiryJob()
-
-
Method Details
-
executeBody
public void executeBody(org.quartz.JobExecutionContext jobExecutionContext) throws org.quartz.JobExecutionException Description copied from class:ClusterAwareJobThis is the job real work to be performed. Every job that is based on this parent cluster aware job needs to implement this method and place here stuff that would be normally put in #execute(JobExecutionContext)- Specified by:
executeBodyin classClusterAwareJob- Throws:
org.quartz.JobExecutionException
-
executionMode
Description copied from class:ClusterAwareJobDetermines the execution mode for this job.The execution mode defines how this job should execute in a clustered environment. Implementations should return the appropriate mode based on their execution requirements (e.g., LOCAL, PRIMARY, or CLUSTERED).
- Specified by:
executionModein classClusterAwareJob
-
cleanupExpiredDueToInactivity
-
cleanUpExpiredVcsBranches
protected void cleanUpExpiredVcsBranches() -
setCachedPlanManager
-
setImmutablePlanCacheService
-
setDeletionService
-
setErrorUpdateHandler
-
setBranchCommitInformationManager
public void setBranchCommitInformationManager(BranchCommitInformationManager branchCommitInformationManager) -
setVcsBranchDao
-
setCustomVariableContext
-
setVcsRepositoryManager
-
hasRegisteredCommits
-
hasRegisteredCommitsAfter
-