public interface ScheduledJob
ScheduledCronJob
and ScheduledSimpleJob
.Modifier and Type | Method and Description |
---|---|
com.atlassian.scheduler.config.JobConfig |
getJobConfig()
When scheduling the job,
ScheduleUtil.withTimeZone(JobConfig, TimeZone)
may be used to set the time zone in case the job is cron based. |
com.atlassian.scheduler.JobRunner |
getJobRunner()
The
JobRunnerKey to register the JobRunner result of this
methos should be taken from the result of getJobConfig() . |
boolean |
isClusteredOnly()
Jobs that are only meaningful in clustered environment won't be
scheduled in non-clustered environments.
|
static com.atlassian.scheduler.config.JobId |
sameJobId(ScheduledJob job)
Utility to get
JobId for the job, the same as the
JobRunnerKey in the JobConfig . |
com.atlassian.scheduler.JobRunner getJobRunner()
JobRunnerKey
to register the JobRunner
result of this
methos should be taken from the result of getJobConfig()
.com.atlassian.scheduler.config.JobConfig getJobConfig()
ScheduleUtil.withTimeZone(JobConfig, TimeZone)
may be used to set the time zone in case the job is cron based.boolean isClusteredOnly()
static com.atlassian.scheduler.config.JobId sameJobId(ScheduledJob job)
JobId
for the job, the same as the
JobRunnerKey
in the JobConfig
.Copyright © 2003–2018 Atlassian. All rights reserved.