public abstract class AbstractScheduledJob extends Object implements ScheduledJob
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractScheduledJob(com.atlassian.scheduler.JobRunner jobRunner,
com.atlassian.scheduler.config.JobConfig jobConfig,
boolean clusteredOnly) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
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 ScheduledJob.getJobConfig(). |
int |
hashCode() |
boolean |
isClusteredOnly()
Jobs that are only meaningful in clustered environment won't be
scheduled in non-clustered environments.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitsameJobIdprotected AbstractScheduledJob(com.atlassian.scheduler.JobRunner jobRunner,
com.atlassian.scheduler.config.JobConfig jobConfig,
boolean clusteredOnly)
public com.atlassian.scheduler.JobRunner getJobRunner()
ScheduledJobJobRunnerKey to register the JobRunner result of this
methos should be taken from the result of ScheduledJob.getJobConfig().getJobRunner in interface ScheduledJobpublic com.atlassian.scheduler.config.JobConfig getJobConfig()
ScheduledJobScheduleUtil.withTimeZone(JobConfig, TimeZone)
may be used to set the time zone in case the job is cron based.getJobConfig in interface ScheduledJobpublic boolean isClusteredOnly()
ScheduledJobisClusteredOnly in interface ScheduledJobCopyright © 2003–2022 Atlassian. All rights reserved.