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 protectedAbstractScheduledJob(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 booleanequals(Object o)com.atlassian.scheduler.config.JobConfiggetJobConfig()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.JobRunnergetJobRunner()TheJobRunnerKeyto register theJobRunnerresult of this method should be taken from the result ofScheduledJob.getJobConfig().inthashCode()booleanisClusteredOnly()Jobs that are only meaningful in clustered environment won't be scheduled in non-clustered environments.StringtoString()
-
-
-
Method Detail
-
getJobRunner
public com.atlassian.scheduler.JobRunner getJobRunner()
Description copied from interface:ScheduledJobTheJobRunnerKeyto register theJobRunnerresult of this method should be taken from the result ofScheduledJob.getJobConfig().- Specified by:
getJobRunnerin interfaceScheduledJob
-
getJobConfig
public com.atlassian.scheduler.config.JobConfig getJobConfig()
Description copied from interface:ScheduledJobWhen scheduling the job,ScheduleUtil.withTimeZone(JobConfig, TimeZone)may be used to set the time zone in case the job is cron based.- Specified by:
getJobConfigin interfaceScheduledJob
-
isClusteredOnly
public boolean isClusteredOnly()
Description copied from interface:ScheduledJobJobs that are only meaningful in clustered environment won't be scheduled in non-clustered environments.- Specified by:
isClusteredOnlyin interfaceScheduledJob
-
-