Class AbstractManagedScheduledJob
java.lang.Object
com.atlassian.confluence.schedule.AbstractManagedScheduledJob
- All Implemented Interfaces:
- ManagedScheduledJob,- ScheduledJob
- Direct Known Subclasses:
- ManagedScheduledCronJob,- ManagedScheduledSimpleJob
Implements common properties for various implementations of ManagedScheduledJob.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final longstatic final TimeoutPolicystatic final Stringstatic final String
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAbstractManagedScheduledJob(String jobId, com.atlassian.scheduler.JobRunner jobRunner, com.atlassian.scheduler.config.JobConfig jobConfig, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable, boolean clusteredOnly) For atlassian-scheduler.protectedAbstractManagedScheduledJob(String jobId, com.atlassian.scheduler.JobRunner jobRunner, com.atlassian.scheduler.config.JobConfig jobConfig, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable, boolean clusteredOnly, long lockWaitTime, @Nullable TimeoutPolicy timeoutPolicy) For atlassian-scheduler.protectedAbstractManagedScheduledJob(String jobId, com.atlassian.scheduler.JobRunner jobRunner, com.atlassian.scheduler.config.JobConfig jobConfig, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable, boolean clusteredOnly, long lockWaitTime, @Nullable TimeoutPolicy timeoutPolicy, boolean disabledByDefault) For atlassian-scheduler.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanbooleanbooleanbooleancom.atlassian.scheduler.config.JobConfigWhen 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.config.JobIdgetJobId()com.atlassian.scheduler.JobRunnerTheJobRunnerKeyto register theJobRunnerresult of this method should be taken from the result ofScheduledJob.getJobConfig().longinthashCode()booleanJobs that are only meaningful in clustered environment won't be scheduled in non-clustered environments.booleanbooleanbooleantoString()
- 
Field Details- 
DEFAULT_LOCK_WAIT_TIME_MSpublic static final long DEFAULT_LOCK_WAIT_TIME_MS- See Also:
 
- 
DEFAULT_TIMEOUT_POLICY
- 
LOCK_WAIT_TIME_PARAMETER_NAME- See Also:
 
- 
TIMEOUT_POLICY_PARAMETER_NAME- See Also:
 
 
- 
- 
Constructor Details- 
AbstractManagedScheduledJobprotected AbstractManagedScheduledJob(String jobId, com.atlassian.scheduler.JobRunner jobRunner, com.atlassian.scheduler.config.JobConfig jobConfig, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable, boolean clusteredOnly) For atlassian-scheduler.
- 
AbstractManagedScheduledJobprotected AbstractManagedScheduledJob(String jobId, com.atlassian.scheduler.JobRunner jobRunner, com.atlassian.scheduler.config.JobConfig jobConfig, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable, boolean clusteredOnly, long lockWaitTime, @Nullable TimeoutPolicy timeoutPolicy) For atlassian-scheduler.
- 
AbstractManagedScheduledJobprotected AbstractManagedScheduledJob(String jobId, com.atlassian.scheduler.JobRunner jobRunner, com.atlassian.scheduler.config.JobConfig jobConfig, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable, boolean clusteredOnly, long lockWaitTime, @Nullable TimeoutPolicy timeoutPolicy, boolean disabledByDefault) For atlassian-scheduler.
 
- 
- 
Method Details- 
getJobIdpublic com.atlassian.scheduler.config.JobId getJobId()- Specified by:
- getJobIdin interface- ManagedScheduledJob
 
- 
getJobRunnerpublic 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 interface- ScheduledJob
 
- 
getJobConfigpublic 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 interface- ScheduledJob
 
- 
isEditablepublic boolean isEditable()- Specified by:
- isEditablein interface- ManagedScheduledJob
 
- 
isKeepingHistorypublic boolean isKeepingHistory()- Specified by:
- isKeepingHistoryin interface- ManagedScheduledJob
 
- 
canRunAdhocpublic boolean canRunAdhoc()- Specified by:
- canRunAdhocin interface- ManagedScheduledJob
 
- 
canDisablepublic boolean canDisable()- Specified by:
- canDisablein interface- ManagedScheduledJob
 
- 
isClusteredOnlypublic 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 interface- ScheduledJob
 
- 
isLocalJobpublic boolean isLocalJob()- Specified by:
- isLocalJobin interface- ManagedScheduledJob
 
- 
getLockWaitTimepublic long getLockWaitTime()- Specified by:
- getLockWaitTimein interface- ManagedScheduledJob
 
- 
getTimeoutPolicy- Specified by:
- getTimeoutPolicyin interface- ManagedScheduledJob
 
- 
disabledByDefaultpublic boolean disabledByDefault()- Specified by:
- disabledByDefaultin interface- ManagedScheduledJob
 
- 
toString
- 
equals
- 
hashCodepublic int hashCode()
 
-