Class AtlassianSchedulerServiceImpl

java.lang.Object
com.atlassian.bamboo.schedule.AtlassianSchedulerServiceImpl
All Implemented Interfaces:
com.atlassian.scheduler.SchedulerService

public class AtlassianSchedulerServiceImpl extends Object implements com.atlassian.scheduler.SchedulerService
  • Constructor Details

    • AtlassianSchedulerServiceImpl

      public AtlassianSchedulerServiceImpl()
  • Method Details

    • registerJobRunner

      public void registerJobRunner(@NotNull @NotNull com.atlassian.scheduler.config.JobRunnerKey jobRunnerKey, @NotNull @NotNull com.atlassian.scheduler.JobRunner jobRunner)
      Specified by:
      registerJobRunner in interface com.atlassian.scheduler.SchedulerService
    • unregisterJobRunner

      public void unregisterJobRunner(@NotNull @NotNull com.atlassian.scheduler.config.JobRunnerKey jobRunnerKey)
      Specified by:
      unregisterJobRunner in interface com.atlassian.scheduler.SchedulerService
    • getRegisteredJobRunnerKeys

      @NotNull public @NotNull Set<com.atlassian.scheduler.config.JobRunnerKey> getRegisteredJobRunnerKeys()
      Specified by:
      getRegisteredJobRunnerKeys in interface com.atlassian.scheduler.SchedulerService
    • getJobRunnerKeysForAllScheduledJobs

      @NotNull public @NotNull Set<com.atlassian.scheduler.config.JobRunnerKey> getJobRunnerKeysForAllScheduledJobs()
      Specified by:
      getJobRunnerKeysForAllScheduledJobs in interface com.atlassian.scheduler.SchedulerService
    • scheduleJob

      public void scheduleJob(@NotNull @NotNull com.atlassian.scheduler.config.JobId jobId, @NotNull @NotNull com.atlassian.scheduler.config.JobConfig jobConfig) throws com.atlassian.scheduler.SchedulerServiceException
      Specified by:
      scheduleJob in interface com.atlassian.scheduler.SchedulerService
      Throws:
      com.atlassian.scheduler.SchedulerServiceException
    • scheduleJobWithGeneratedId

      @NotNull public @NotNull com.atlassian.scheduler.config.JobId scheduleJobWithGeneratedId(@NotNull @NotNull com.atlassian.scheduler.config.JobConfig jobConfig) throws com.atlassian.scheduler.SchedulerServiceException
      Specified by:
      scheduleJobWithGeneratedId in interface com.atlassian.scheduler.SchedulerService
      Throws:
      com.atlassian.scheduler.SchedulerServiceException
    • unscheduleJob

      public void unscheduleJob(@NotNull @NotNull com.atlassian.scheduler.config.JobId jobId)
      Specified by:
      unscheduleJob in interface com.atlassian.scheduler.SchedulerService
    • calculateNextRunTime

      @Nullable public @Nullable Date calculateNextRunTime(@NotNull @NotNull com.atlassian.scheduler.config.Schedule schedule) throws com.atlassian.scheduler.SchedulerServiceException
      Specified by:
      calculateNextRunTime in interface com.atlassian.scheduler.SchedulerService
      Throws:
      com.atlassian.scheduler.SchedulerServiceException
    • calculateNextRunTime

      @Nullable public @Nullable Date calculateNextRunTime(com.atlassian.scheduler.config.Schedule schedule, Date date) throws com.atlassian.scheduler.SchedulerServiceException
      Specified by:
      calculateNextRunTime in interface com.atlassian.scheduler.SchedulerService
      Throws:
      com.atlassian.scheduler.SchedulerServiceException
    • getJobDetails

      @Nullable public @Nullable com.atlassian.scheduler.status.JobDetails getJobDetails(@NotNull @NotNull com.atlassian.scheduler.config.JobId jobId)
      Specified by:
      getJobDetails in interface com.atlassian.scheduler.SchedulerService
    • getJobsByJobRunnerKey

      @NotNull public @NotNull List<com.atlassian.scheduler.status.JobDetails> getJobsByJobRunnerKey(@NotNull @NotNull com.atlassian.scheduler.config.JobRunnerKey jobRunnerKey)
      Specified by:
      getJobsByJobRunnerKey in interface com.atlassian.scheduler.SchedulerService
    • getJobsByJobRunnerKeys

      @NotNull public @NotNull List<com.atlassian.scheduler.status.JobDetails> getJobsByJobRunnerKeys(List<com.atlassian.scheduler.config.JobRunnerKey> list)
      Specified by:
      getJobsByJobRunnerKeys in interface com.atlassian.scheduler.SchedulerService