public class AtlassianSchedulerServiceImpl extends Object implements com.atlassian.scheduler.SchedulerService
Constructor and Description |
---|
AtlassianSchedulerServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Date |
calculateNextRunTime(com.atlassian.scheduler.config.Schedule schedule) |
com.atlassian.scheduler.status.JobDetails |
getJobDetails(com.atlassian.scheduler.config.JobId jobId) |
Set<com.atlassian.scheduler.config.JobRunnerKey> |
getJobRunnerKeysForAllScheduledJobs() |
List<com.atlassian.scheduler.status.JobDetails> |
getJobsByJobRunnerKey(com.atlassian.scheduler.config.JobRunnerKey jobRunnerKey) |
Set<com.atlassian.scheduler.config.JobRunnerKey> |
getRegisteredJobRunnerKeys() |
void |
registerJobRunner(com.atlassian.scheduler.config.JobRunnerKey jobRunnerKey,
com.atlassian.scheduler.JobRunner jobRunner) |
void |
scheduleJob(com.atlassian.scheduler.config.JobId jobId,
com.atlassian.scheduler.config.JobConfig jobConfig) |
com.atlassian.scheduler.config.JobId |
scheduleJobWithGeneratedId(com.atlassian.scheduler.config.JobConfig jobConfig) |
void |
unregisterJobRunner(com.atlassian.scheduler.config.JobRunnerKey jobRunnerKey) |
void |
unscheduleJob(com.atlassian.scheduler.config.JobId jobId) |
public void registerJobRunner(@NotNull com.atlassian.scheduler.config.JobRunnerKey jobRunnerKey, @NotNull com.atlassian.scheduler.JobRunner jobRunner)
registerJobRunner
in interface com.atlassian.scheduler.SchedulerService
public void unregisterJobRunner(@NotNull com.atlassian.scheduler.config.JobRunnerKey jobRunnerKey)
unregisterJobRunner
in interface com.atlassian.scheduler.SchedulerService
@NotNull public Set<com.atlassian.scheduler.config.JobRunnerKey> getRegisteredJobRunnerKeys()
getRegisteredJobRunnerKeys
in interface com.atlassian.scheduler.SchedulerService
@NotNull public Set<com.atlassian.scheduler.config.JobRunnerKey> getJobRunnerKeysForAllScheduledJobs()
getJobRunnerKeysForAllScheduledJobs
in interface com.atlassian.scheduler.SchedulerService
public void scheduleJob(@NotNull com.atlassian.scheduler.config.JobId jobId, @NotNull com.atlassian.scheduler.config.JobConfig jobConfig) throws com.atlassian.scheduler.SchedulerServiceException
scheduleJob
in interface com.atlassian.scheduler.SchedulerService
com.atlassian.scheduler.SchedulerServiceException
@NotNull public com.atlassian.scheduler.config.JobId scheduleJobWithGeneratedId(@NotNull com.atlassian.scheduler.config.JobConfig jobConfig) throws com.atlassian.scheduler.SchedulerServiceException
scheduleJobWithGeneratedId
in interface com.atlassian.scheduler.SchedulerService
com.atlassian.scheduler.SchedulerServiceException
public void unscheduleJob(@NotNull com.atlassian.scheduler.config.JobId jobId)
unscheduleJob
in interface com.atlassian.scheduler.SchedulerService
@Nullable public Date calculateNextRunTime(@NotNull com.atlassian.scheduler.config.Schedule schedule) throws com.atlassian.scheduler.SchedulerServiceException
calculateNextRunTime
in interface com.atlassian.scheduler.SchedulerService
com.atlassian.scheduler.SchedulerServiceException
@Nullable public com.atlassian.scheduler.status.JobDetails getJobDetails(@NotNull com.atlassian.scheduler.config.JobId jobId)
getJobDetails
in interface com.atlassian.scheduler.SchedulerService
@NotNull public List<com.atlassian.scheduler.status.JobDetails> getJobsByJobRunnerKey(@NotNull com.atlassian.scheduler.config.JobRunnerKey jobRunnerKey)
getJobsByJobRunnerKey
in interface com.atlassian.scheduler.SchedulerService
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.