Class SchedulerServiceImpl

java.lang.Object
com.atlassian.bamboo.admin.scheduler.SchedulerServiceImpl
All Implemented Interfaces:
SchedulerService

public class SchedulerServiceImpl extends Object implements SchedulerService
Service providing interactions with the job scheduler.
  • Constructor Details

    • SchedulerServiceImpl

      public SchedulerServiceImpl(@NotNull @NotNull BambooPermissionManager bambooPermissionManager, @NotNull @NotNull org.quartz.Scheduler scheduler)
      Parameterized constructor.
      Parameters:
      bambooPermissionManager - the permission manager to check for bamboo permissions
      scheduler - the scheduler used to execute jobs
  • Method Details

    • getJobs

      @NotNull public @NotNull List<ScheduledJob> getJobs() throws org.quartz.SchedulerException
      Description copied from interface: SchedulerService
      Gets the collection of jobs currently scheduled to be run.
      Specified by:
      getJobs in interface SchedulerService
      Returns:
      the collection of scheduled jobs
      Throws:
      org.quartz.SchedulerException
    • triggerJob

      public void triggerJob(@NotNull @NotNull ScheduledJob job) throws org.quartz.SchedulerException
      Description copied from interface: SchedulerService
      Triggers the job provided to be run immediately.
      Specified by:
      triggerJob in interface SchedulerService
      Parameters:
      job - the job to be triggered
      Throws:
      org.quartz.SchedulerException