public abstract class AbstractManagedScheduledJob extends Object implements ManagedScheduledJob
Modifier | Constructor and Description |
---|---|
protected |
AbstractManagedScheduledJob(org.quartz.JobDetail jobDetail,
boolean editable,
boolean keepingHistory,
boolean canRunAdhoc,
boolean canDisable)
Deprecated.
since 6.0.0
|
protected |
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canDisable() |
boolean |
canRunAdhoc() |
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. |
org.quartz.JobDetail |
getJobDetail()
For Quartz job.
|
com.atlassian.scheduler.JobRunner |
getJobRunner()
The
JobRunnerKey to register the JobRunner result of this
methos should be taken from the result of ScheduledJob.getJobConfig() . |
ScheduledJobKey |
getScheduledJobKey()
Returns
ScheduledJobKey.valueOf(JobDetail) when ManagedScheduledJob.getJobDetail()
returns non-null, or ScheduledJobKey.valueOf(JobId) when ScheduledJob.getJobConfig()
returns non-null. |
int |
hashCode() |
boolean |
isClusteredOnly()
Jobs that are only meaningful in clustered environment won't be
scheduled in non-clustered environments.
|
boolean |
isEditable() |
boolean |
isKeepingHistory() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isQuartzJob
sameJobId
@Deprecated protected AbstractManagedScheduledJob(org.quartz.JobDetail jobDetail, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable)
protected AbstractManagedScheduledJob(String jobId, com.atlassian.scheduler.JobRunner jobRunner, com.atlassian.scheduler.config.JobConfig jobConfig, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable, boolean clusteredOnly)
public ScheduledJobKey getScheduledJobKey()
ManagedScheduledJob
ScheduledJobKey.valueOf(JobDetail)
when ManagedScheduledJob.getJobDetail()
returns non-null, or ScheduledJobKey.valueOf(JobId)
when ScheduledJob.getJobConfig()
returns non-null.getScheduledJobKey
in interface ManagedScheduledJob
public org.quartz.JobDetail getJobDetail()
ManagedScheduledJob
null
when
ScheduledJob.getJobRunner()
and ScheduledJob.getJobConfig()
return non-null.getJobDetail
in interface ManagedScheduledJob
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 isEditable()
isEditable
in interface ManagedScheduledJob
public boolean isKeepingHistory()
isKeepingHistory
in interface ManagedScheduledJob
public boolean canRunAdhoc()
canRunAdhoc
in interface ManagedScheduledJob
public boolean canDisable()
canDisable
in interface ManagedScheduledJob
public boolean isClusteredOnly()
ScheduledJob
isClusteredOnly
in interface ScheduledJob
Copyright © 2003–2016 Atlassian. All rights reserved.