com.atlassian.bamboo.schedule
Class DefaultPlanScheduler

java.lang.Object
  extended by com.atlassian.bamboo.schedule.DefaultPlanScheduler
All Implemented Interfaces:
PlanScheduler

public class DefaultPlanScheduler
extends java.lang.Object
implements PlanScheduler


Constructor Summary
DefaultPlanScheduler()
           
 
Method Summary
 void createSchedulingJobs(Plan plan)
          Creates Scheduling Jobs for the given Plan and its Branches
 void executeWithoutPlanSchedules(PlanSchedulerCallback planSchedulerCallback)
          Removes the existing scheduling jobs, executes the PlanSchedulerCallback and recreates the jobs
 void executeWithoutSchedules(TriggerableSchedulerCallback callback)
          Removes the existing scheduling jobs, executes TriggerableSchedulerCallback and recreates the jobs
 void removeAllScheduledJobs(Triggerable triggerable)
          Remove all scheduling jobs for a Triggerable.
 void removeSchedulingJobs(Plan plan)
          Removes Scheduling Jobs for the given Plan and its Branches
 void removeTasksScheduledForPlan(ImmutablePlan plan)
          Removes Scheduling Jobs for the given Plan
 void removeTasksScheduledForPlanAndBranches(ImmutablePlan plan)
          Removes Scheduling Jobs for the given Plan and its Branches
 void removeTasksScheduledForTriggerable(Triggerable triggerable)
           
 void scheduleTasksForPlan(ImmutablePlan plan)
          Creates Scheduling Jobs for the given Plan
 void scheduleTasksForPlanAndBranches(ImmutablePlan plan)
          Creates Scheduling Jobs for the given Plan and its Branches
 void scheduleTasksForTriggerable(Triggerable triggerable)
           
 void scheduleTriggeringJobs(Triggerable triggerable)
          Starts all scheduling jobs for a Triggerable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPlanScheduler

public DefaultPlanScheduler()
Method Detail

removeTasksScheduledForTriggerable

public void removeTasksScheduledForTriggerable(@NotNull
                                               Triggerable triggerable)

removeTasksScheduledForPlan

public void removeTasksScheduledForPlan(@NotNull
                                        ImmutablePlan plan)
Description copied from interface: PlanScheduler
Removes Scheduling Jobs for the given Plan

Specified by:
removeTasksScheduledForPlan in interface PlanScheduler

scheduleTasksForTriggerable

public void scheduleTasksForTriggerable(@NotNull
                                        Triggerable triggerable)

scheduleTasksForPlan

public void scheduleTasksForPlan(@NotNull
                                 ImmutablePlan plan)
Description copied from interface: PlanScheduler
Creates Scheduling Jobs for the given Plan

Specified by:
scheduleTasksForPlan in interface PlanScheduler

removeTasksScheduledForPlanAndBranches

public void removeTasksScheduledForPlanAndBranches(@NotNull
                                                   ImmutablePlan plan)
Description copied from interface: PlanScheduler
Removes Scheduling Jobs for the given Plan and its Branches

Specified by:
removeTasksScheduledForPlanAndBranches in interface PlanScheduler

scheduleTasksForPlanAndBranches

public void scheduleTasksForPlanAndBranches(@NotNull
                                            ImmutablePlan plan)
Description copied from interface: PlanScheduler
Creates Scheduling Jobs for the given Plan and its Branches

Specified by:
scheduleTasksForPlanAndBranches in interface PlanScheduler

removeSchedulingJobs

public void removeSchedulingJobs(@NotNull
                                 Plan plan)
Description copied from interface: PlanScheduler
Removes Scheduling Jobs for the given Plan and its Branches

Specified by:
removeSchedulingJobs in interface PlanScheduler

createSchedulingJobs

public void createSchedulingJobs(@NotNull
                                 Plan plan)
Description copied from interface: PlanScheduler
Creates Scheduling Jobs for the given Plan and its Branches

Specified by:
createSchedulingJobs in interface PlanScheduler

executeWithoutPlanSchedules

public void executeWithoutPlanSchedules(@NotNull
                                        PlanSchedulerCallback planSchedulerCallback)
Description copied from interface: PlanScheduler
Removes the existing scheduling jobs, executes the PlanSchedulerCallback and recreates the jobs

Specified by:
executeWithoutPlanSchedules in interface PlanScheduler

executeWithoutSchedules

public void executeWithoutSchedules(@NotNull
                                    TriggerableSchedulerCallback callback)
Description copied from interface: PlanScheduler
Removes the existing scheduling jobs, executes TriggerableSchedulerCallback and recreates the jobs

Specified by:
executeWithoutSchedules in interface PlanScheduler

removeAllScheduledJobs

public void removeAllScheduledJobs(@NotNull
                                   Triggerable triggerable)
Description copied from interface: PlanScheduler
Remove all scheduling jobs for a Triggerable. If argument is a Plan this method is equivalent of PlanScheduler.removeTasksScheduledForPlanAndBranches(ImmutablePlan)

Specified by:
removeAllScheduledJobs in interface PlanScheduler

scheduleTriggeringJobs

public void scheduleTriggeringJobs(@NotNull
                                   Triggerable triggerable)
Description copied from interface: PlanScheduler
Starts all scheduling jobs for a Triggerable. If argument is a Plan this method is equivalent of PlanScheduler.scheduleTasksForPlanAndBranches(ImmutablePlan)

Specified by:
scheduleTriggeringJobs in interface PlanScheduler


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.