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