Package com.atlassian.bamboo.schedule
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 Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable Date
calculateNextRunTime
(@NotNull com.atlassian.scheduler.config.Schedule schedule) @Nullable Date
calculateNextRunTime
(com.atlassian.scheduler.config.Schedule schedule, Date date) @Nullable com.atlassian.scheduler.status.JobDetails
getJobDetails
(@NotNull com.atlassian.scheduler.config.JobId jobId) @NotNull Set<com.atlassian.scheduler.config.JobRunnerKey>
@NotNull List<com.atlassian.scheduler.status.JobDetails>
getJobsByJobRunnerKey
(@NotNull com.atlassian.scheduler.config.JobRunnerKey jobRunnerKey) @NotNull List<com.atlassian.scheduler.status.JobDetails>
getJobsByJobRunnerKeys
(List<com.atlassian.scheduler.config.JobRunnerKey> list) @NotNull Set<com.atlassian.scheduler.config.JobRunnerKey>
void
registerJobRunner
(@NotNull com.atlassian.scheduler.config.JobRunnerKey jobRunnerKey, @NotNull com.atlassian.scheduler.JobRunner jobRunner) void
scheduleJob
(@NotNull com.atlassian.scheduler.config.JobId jobId, @NotNull com.atlassian.scheduler.config.JobConfig jobConfig) @NotNull com.atlassian.scheduler.config.JobId
scheduleJobWithGeneratedId
(@NotNull com.atlassian.scheduler.config.JobConfig jobConfig) void
unregisterJobRunner
(@NotNull com.atlassian.scheduler.config.JobRunnerKey jobRunnerKey) void
unscheduleJob
(@NotNull com.atlassian.scheduler.config.JobId jobId)
-
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 interfacecom.atlassian.scheduler.SchedulerService
-
unregisterJobRunner
public void unregisterJobRunner(@NotNull @NotNull com.atlassian.scheduler.config.JobRunnerKey jobRunnerKey) - Specified by:
unregisterJobRunner
in interfacecom.atlassian.scheduler.SchedulerService
-
getRegisteredJobRunnerKeys
@NotNull public @NotNull Set<com.atlassian.scheduler.config.JobRunnerKey> getRegisteredJobRunnerKeys()- Specified by:
getRegisteredJobRunnerKeys
in interfacecom.atlassian.scheduler.SchedulerService
-
getJobRunnerKeysForAllScheduledJobs
@NotNull public @NotNull Set<com.atlassian.scheduler.config.JobRunnerKey> getJobRunnerKeysForAllScheduledJobs()- Specified by:
getJobRunnerKeysForAllScheduledJobs
in interfacecom.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 interfacecom.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 interfacecom.atlassian.scheduler.SchedulerService
- Throws:
com.atlassian.scheduler.SchedulerServiceException
-
unscheduleJob
public void unscheduleJob(@NotNull @NotNull com.atlassian.scheduler.config.JobId jobId) - Specified by:
unscheduleJob
in interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.atlassian.scheduler.SchedulerService
-