Package com.atlassian.bamboo.schedule
Interface PlanScheduler
-
- All Known Implementing Classes:
DefaultPlanScheduler
public interface PlanScheduler
Manages scheduled jobs forPlan
s
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
executeWithoutPlanSchedules(@NotNull PlanSchedulerCallback planSchedulerCallback)
Removes the existing scheduling jobs, executes thePlanSchedulerCallback
and recreates the jobsvoid
executeWithoutSchedules(@NotNull TriggerableSchedulerCallback triggerableSchedulerCallback)
Removes the existing scheduling jobs, executesTriggerableSchedulerCallback
and recreates the jobsvoid
removeAllScheduledJobs(@NotNull Triggerable triggerable)
Remove all scheduling jobs for aTriggerable
.void
removeTasksScheduledForPlan(@NotNull ImmutablePlan plan)
Removes Scheduling Jobs for the givenPlan
void
removeTasksScheduledForPlanAndBranches(@NotNull ImmutablePlan plan)
Removes Scheduling Jobs for the givenPlan
and its Branchesvoid
scheduleTasksForPlan(@NotNull ImmutablePlan plan)
Creates Scheduling Jobs for the givenPlan
void
scheduleTasksForPlanAndBranches(@NotNull ImmutablePlan plan)
Creates Scheduling Jobs for the givenPlan
and its Branchesvoid
scheduleTriggeringJobs(@NotNull Triggerable triggerable)
Starts all scheduling jobs for aTriggerable
.
-
-
-
Method Detail
-
removeTasksScheduledForPlan
void removeTasksScheduledForPlan(@NotNull @NotNull ImmutablePlan plan)
Removes Scheduling Jobs for the givenPlan
- Parameters:
plan
-
-
scheduleTasksForPlan
void scheduleTasksForPlan(@NotNull @NotNull ImmutablePlan plan)
Creates Scheduling Jobs for the givenPlan
- Parameters:
plan
-
-
removeTasksScheduledForPlanAndBranches
void removeTasksScheduledForPlanAndBranches(@NotNull @NotNull ImmutablePlan plan)
Removes Scheduling Jobs for the givenPlan
and its Branches- Parameters:
plan
-
-
scheduleTasksForPlanAndBranches
void scheduleTasksForPlanAndBranches(@NotNull @NotNull ImmutablePlan plan)
Creates Scheduling Jobs for the givenPlan
and its Branches- Parameters:
plan
-
-
executeWithoutPlanSchedules
void executeWithoutPlanSchedules(@NotNull @NotNull PlanSchedulerCallback planSchedulerCallback)
Removes the existing scheduling jobs, executes thePlanSchedulerCallback
and recreates the jobs- Parameters:
planSchedulerCallback
-
-
executeWithoutSchedules
void executeWithoutSchedules(@NotNull @NotNull TriggerableSchedulerCallback triggerableSchedulerCallback)
Removes the existing scheduling jobs, executesTriggerableSchedulerCallback
and recreates the jobs- Parameters:
triggerableSchedulerCallback
-- Since:
- 5.0
-
removeAllScheduledJobs
void removeAllScheduledJobs(@NotNull @NotNull Triggerable triggerable)
Remove all scheduling jobs for aTriggerable
. If argument is aPlan
this method is equivalent ofremoveTasksScheduledForPlanAndBranches(ImmutablePlan)
- Parameters:
triggerable
-- Since:
- 5.0
-
scheduleTriggeringJobs
void scheduleTriggeringJobs(@NotNull @NotNull Triggerable triggerable)
Starts all scheduling jobs for aTriggerable
. If argument is aPlan
this method is equivalent ofscheduleTasksForPlanAndBranches(ImmutablePlan)
- Parameters:
triggerable
-- Since:
- 5.0
-
-