com.atlassian.bamboo.schedule
Interface PlanScheduler

All Known Implementing Classes:
DefaultPlanScheduler

public interface PlanScheduler

Manages scheduled jobs for Plans


Method Summary
 void createSchedulingJobs(Plan plan)
          Deprecated. since 5.0 use $#scheduleTasksForPlanAndBranches(com.atlassian.bamboo.plan.Plan)
 void executeWithoutPlanSchedules(PlanSchedulerCallback planSchedulerCallback)
          Removes the existing scheduling jobs, executes the PlanSchedulerCallback and recreates the jobs
 void executeWithoutSchedules(TriggerableSchedulerCallback triggerableSchedulerCallback)
          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)
          Deprecated. since 5.0 use $#removeTasksScheduledForPlanAndBranches(com.atlassian.bamboo.plan.Plan)
 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 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 scheduleTriggeringJobs(Triggerable triggerable)
          Starts all scheduling jobs for a Triggerable.
 

Method Detail

removeTasksScheduledForPlan

void removeTasksScheduledForPlan(@NotNull
                                 ImmutablePlan plan)
Removes Scheduling Jobs for the given Plan

Parameters:
plan -

scheduleTasksForPlan

void scheduleTasksForPlan(@NotNull
                          ImmutablePlan plan)
Creates Scheduling Jobs for the given Plan

Parameters:
plan -

removeTasksScheduledForPlanAndBranches

void removeTasksScheduledForPlanAndBranches(@NotNull
                                            ImmutablePlan plan)
Removes Scheduling Jobs for the given Plan and its Branches

Parameters:
plan -

scheduleTasksForPlanAndBranches

void scheduleTasksForPlanAndBranches(@NotNull
                                     ImmutablePlan plan)
Creates Scheduling Jobs for the given Plan and its Branches

Parameters:
plan -

removeSchedulingJobs

@Deprecated
void removeSchedulingJobs(@NotNull
                                     Plan plan)
Deprecated. since 5.0 use $#removeTasksScheduledForPlanAndBranches(com.atlassian.bamboo.plan.Plan)

Removes Scheduling Jobs for the given Plan and its Branches

Parameters:
plan -

createSchedulingJobs

@Deprecated
void createSchedulingJobs(@NotNull
                                     Plan plan)
Deprecated. since 5.0 use $#scheduleTasksForPlanAndBranches(com.atlassian.bamboo.plan.Plan)

Creates Scheduling Jobs for the given Plan and its Branches

Parameters:
plan -

executeWithoutPlanSchedules

void executeWithoutPlanSchedules(@NotNull
                                 PlanSchedulerCallback planSchedulerCallback)
Removes the existing scheduling jobs, executes the PlanSchedulerCallback and recreates the jobs

Parameters:
planSchedulerCallback -

executeWithoutSchedules

void executeWithoutSchedules(@NotNull
                             TriggerableSchedulerCallback triggerableSchedulerCallback)
Removes the existing scheduling jobs, executes TriggerableSchedulerCallback and recreates the jobs

Parameters:
triggerableSchedulerCallback -
Since:
5.0

removeAllScheduledJobs

void removeAllScheduledJobs(@NotNull
                            Triggerable triggerable)
Remove all scheduling jobs for a Triggerable. If argument is a Plan this method is equivalent of removeTasksScheduledForPlanAndBranches(ImmutablePlan)

Parameters:
triggerable -
Since:
5.0

scheduleTriggeringJobs

void scheduleTriggeringJobs(@NotNull
                            Triggerable triggerable)
Starts all scheduling jobs for a Triggerable. If argument is a Plan this method is equivalent of scheduleTasksForPlanAndBranches(ImmutablePlan)

Parameters:
triggerable -
Since:
5.0


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