public abstract class AbstractManagedScheduledJob extends Object implements ManagedScheduledJob
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_LOCK_WAIT_TIME_MS |
static TimeoutPolicy |
DEFAULT_TIMEOUT_POLICY |
static String |
LOCK_WAIT_TIME_PARAMETER_NAME |
static String |
TIMEOUT_POLICY_PARAMETER_NAME |
Modifier | Constructor and Description |
---|---|
protected |
AbstractManagedScheduledJob(org.quartz.JobDetail jobDetail,
boolean editable,
boolean keepingHistory,
boolean canRunAdhoc,
boolean canDisable)
Deprecated.
since 5.10
|
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.
|
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,
long lockWaitTime,
@Nullable TimeoutPolicy timeoutPolicy)
For atlassian-scheduler.
|
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,
long lockWaitTime,
@Nullable TimeoutPolicy timeoutPolicy,
boolean disabledByDefault)
For atlassian-scheduler.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canDisable() |
boolean |
canRunAdhoc() |
boolean |
disabledByDefault() |
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() . |
long |
getLockWaitTime() |
ScheduledJobKey |
getScheduledJobKey()
Returns
ScheduledJobKey.valueOf(JobDetail) when ManagedScheduledJob.getJobDetail()
returns non-null, or ScheduledJobKey.valueOf(JobId) when ScheduledJob.getJobConfig()
returns non-null. |
Optional<TimeoutPolicy> |
getTimeoutPolicy() |
int |
hashCode() |
boolean |
isClusteredOnly()
Jobs that are only meaningful in clustered environment won't be
scheduled in non-clustered environments.
|
boolean |
isEditable() |
boolean |
isKeepingHistory() |
boolean |
isLocalJob() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isCronJob, isQuartzJob
sameJobId
public static final long DEFAULT_LOCK_WAIT_TIME_MS
public static final TimeoutPolicy DEFAULT_TIMEOUT_POLICY
public static final String LOCK_WAIT_TIME_PARAMETER_NAME
public static final String TIMEOUT_POLICY_PARAMETER_NAME
@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)
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, long lockWaitTime, @Nullable TimeoutPolicy timeoutPolicy)
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, long lockWaitTime, @Nullable TimeoutPolicy timeoutPolicy, boolean disabledByDefault)
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
public boolean isLocalJob()
isLocalJob
in interface ManagedScheduledJob
public long getLockWaitTime()
getLockWaitTime
in interface ManagedScheduledJob
public Optional<TimeoutPolicy> getTimeoutPolicy()
getTimeoutPolicy
in interface ManagedScheduledJob
public boolean disabledByDefault()
disabledByDefault
in interface ManagedScheduledJob
Copyright © 2003–2021 Atlassian. All rights reserved.