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, wait
sameJobId
protected AbstractScheduledJob(com.atlassian.scheduler.JobRunner jobRunner, com.atlassian.scheduler.config.JobConfig jobConfig, boolean clusteredOnly)
public com.atlassian.scheduler.JobRunner getJobRunner()
ScheduledJob
JobRunnerKey
to register the JobRunner
result of this
methos should be taken from the result of ScheduledJob.getJobConfig()
.getJobRunner
in interface ScheduledJob
public com.atlassian.scheduler.config.JobConfig getJobConfig()
ScheduledJob
ScheduleUtil.withTimeZone(JobConfig, TimeZone)
may be used to set the time zone in case the job is cron based.getJobConfig
in interface ScheduledJob
public boolean isClusteredOnly()
ScheduledJob
isClusteredOnly
in interface ScheduledJob
Copyright © 2003–2017 Atlassian. All rights reserved.