Class BranchExpiryJob

java.lang.Object
com.atlassian.bamboo.quartz.cluster.ClusterAwareJob
com.atlassian.bamboo.plan.branch.BranchExpiryJob
All Implemented Interfaces:
org.quartz.Job

public class BranchExpiryJob extends ClusterAwareJob
  • Constructor Details

    • BranchExpiryJob

      public BranchExpiryJob()
  • Method Details

    • executeBody

      public void executeBody(org.quartz.JobExecutionContext jobExecutionContext) throws org.quartz.JobExecutionException
      Description copied from class: ClusterAwareJob
      This 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:
      executeBody in class ClusterAwareJob
      Throws:
      org.quartz.JobExecutionException
    • executionMode

      protected JobExecutionMode executionMode()
      Description copied from class: ClusterAwareJob
      Determines 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:
      executionMode in class ClusterAwareJob
    • 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)