Class AbstractScheduledJob
- java.lang.Object
-
- com.atlassian.confluence.schedule.AbstractScheduledJob
-
- All Implemented Interfaces:
ScheduledJob
- Direct Known Subclasses:
ScheduledCronJob
,ScheduledSimpleJob
public abstract class AbstractScheduledJob extends Object implements ScheduledJob
- Since:
- 5.10
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractScheduledJob(com.atlassian.scheduler.JobRunner jobRunner, com.atlassian.scheduler.config.JobConfig jobConfig, boolean clusteredOnly)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
TheJobRunnerKey
to register theJobRunner
result of this method should be taken from the result ofScheduledJob.getJobConfig()
.int
hashCode()
boolean
isClusteredOnly()
Jobs that are only meaningful in clustered environment won't be scheduled in non-clustered environments.String
toString()
-
-
-
Method Detail
-
getJobRunner
public com.atlassian.scheduler.JobRunner getJobRunner()
Description copied from interface:ScheduledJob
TheJobRunnerKey
to register theJobRunner
result of this method should be taken from the result ofScheduledJob.getJobConfig()
.- Specified by:
getJobRunner
in interfaceScheduledJob
-
getJobConfig
public com.atlassian.scheduler.config.JobConfig getJobConfig()
Description copied from interface:ScheduledJob
When scheduling the job,ScheduleUtil.withTimeZone(JobConfig, TimeZone)
may be used to set the time zone in case the job is cron based.- Specified by:
getJobConfig
in interfaceScheduledJob
-
isClusteredOnly
public boolean isClusteredOnly()
Description copied from interface:ScheduledJob
Jobs that are only meaningful in clustered environment won't be scheduled in non-clustered environments.- Specified by:
isClusteredOnly
in interfaceScheduledJob
-
-