public class DefaultPlanScheduler extends Object implements PlanScheduler
Constructor and Description |
---|
DefaultPlanScheduler(TriggerTypeManager triggerTypeManager) |
Modifier and Type | Method and Description |
---|---|
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 |
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 . |
public DefaultPlanScheduler(TriggerTypeManager triggerTypeManager)
public void removeTasksScheduledForTriggerable(@NotNull Triggerable triggerable)
public void removeTasksScheduledForPlan(@NotNull ImmutablePlan plan)
PlanScheduler
Plan
removeTasksScheduledForPlan
in interface PlanScheduler
public void scheduleTasksForTriggerable(@NotNull Triggerable triggerable)
public void scheduleTasksForPlan(@NotNull ImmutablePlan plan)
PlanScheduler
Plan
scheduleTasksForPlan
in interface PlanScheduler
public void removeTasksScheduledForPlanAndBranches(@NotNull ImmutablePlan plan)
PlanScheduler
Plan
and its BranchesremoveTasksScheduledForPlanAndBranches
in interface PlanScheduler
public void scheduleTasksForPlanAndBranches(@NotNull ImmutablePlan plan)
PlanScheduler
Plan
and its BranchesscheduleTasksForPlanAndBranches
in interface PlanScheduler
public void executeWithoutPlanSchedules(@NotNull PlanSchedulerCallback planSchedulerCallback)
PlanScheduler
PlanSchedulerCallback
and recreates the jobsexecuteWithoutPlanSchedules
in interface PlanScheduler
public void executeWithoutSchedules(@NotNull TriggerableSchedulerCallback callback)
PlanScheduler
TriggerableSchedulerCallback
and recreates the jobsexecuteWithoutSchedules
in interface PlanScheduler
public void removeAllScheduledJobs(@NotNull Triggerable triggerable)
PlanScheduler
Triggerable
.
If argument is a Plan
this method is equivalent of PlanScheduler.removeTasksScheduledForPlanAndBranches(ImmutablePlan)
removeAllScheduledJobs
in interface PlanScheduler
public void scheduleTriggeringJobs(@NotNull Triggerable triggerable)
PlanScheduler
Triggerable
.
If argument is a Plan
this method is equivalent of PlanScheduler.scheduleTasksForPlanAndBranches(ImmutablePlan)
scheduleTriggeringJobs
in interface PlanScheduler
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.