public class ManagedScheduledCronJob extends AbstractManagedScheduledJob
If your job is only meaningful in clustered environment, use the constructor
that can set clusteredOnly
to true
so that your job won't be
scheduled in non-clustered environments.
DEFAULT_LOCK_WAIT_TIME_MS, DEFAULT_TIMEOUT_POLICY, LOCK_WAIT_TIME_PARAMETER_NAME, TIMEOUT_POLICY_PARAMETER_NAME
Constructor and Description |
---|
ManagedScheduledCronJob(org.quartz.JobDetail jobDetail,
String defaultCronExpression,
boolean editable,
boolean keepingHistory,
boolean canRunAdhoc,
boolean canDisable)
Deprecated.
since 5.10
|
ManagedScheduledCronJob(com.atlassian.scheduler.config.JobId jobId,
com.atlassian.scheduler.JobRunner jobRunner,
com.atlassian.scheduler.config.JobConfig jobConfig,
boolean editable,
boolean keepingHistory,
boolean canRunAdhoc,
boolean canDisable)
For atlassian-scheduler.
|
ManagedScheduledCronJob(com.atlassian.scheduler.config.JobId 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.
|
ManagedScheduledCronJob(com.atlassian.scheduler.config.JobId 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.
|
ManagedScheduledCronJob(String id,
com.atlassian.scheduler.JobRunner jobRunner,
boolean runOncePerCluster,
String cronExpression,
boolean editable,
boolean keepingHistory,
boolean canRunAdhoc,
boolean canDisable)
For atlassian-scheduler.
|
ManagedScheduledCronJob(String id,
com.atlassian.scheduler.JobRunner jobRunner,
boolean runOncePerCluster,
String cronExpression,
boolean editable,
boolean keepingHistory,
boolean canRunAdhoc,
boolean canDisable,
boolean clusteredOnly)
For atlassian-scheduler.
|
ManagedScheduledCronJob(String id,
com.atlassian.scheduler.JobRunner jobRunner,
boolean runOncePerCluster,
String cronExpression,
boolean editable,
boolean keepingHistory,
boolean canRunAdhoc,
boolean canDisable,
boolean clusteredOnly,
long lockWaitTime,
@Nullable TimeoutPolicy timeoutPolicy)
For atlassian-scheduler.
|
ManagedScheduledCronJob(String id,
com.atlassian.scheduler.JobRunner jobRunner,
boolean runOncePerCluster,
String cronExpression,
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 |
---|---|
static ManagedScheduledCronJob |
disabledByDefault(String id,
com.atlassian.scheduler.JobRunner jobRunner,
boolean runOncePerCluster,
String cronExpression,
boolean editable,
boolean keepingHistory,
boolean canRunAdhoc,
boolean canDisable) |
boolean |
equals(Object o) |
String |
getDefaultCronExpression() |
int |
hashCode() |
canDisable, canRunAdhoc, disabledByDefault, getJobConfig, getJobDetail, getJobRunner, getLockWaitTime, getScheduledJobKey, getTimeoutPolicy, isClusteredOnly, isEditable, isKeepingHistory, isLocalJob, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isCronJob, isQuartzJob
sameJobId
@Deprecated public ManagedScheduledCronJob(org.quartz.JobDetail jobDetail, String defaultCronExpression, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable)
public ManagedScheduledCronJob(String id, com.atlassian.scheduler.JobRunner jobRunner, boolean runOncePerCluster, String cronExpression, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable)
id
is used for both JobId
and JobRunnerKey
.public ManagedScheduledCronJob(String id, com.atlassian.scheduler.JobRunner jobRunner, boolean runOncePerCluster, String cronExpression, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable, boolean clusteredOnly)
id
is used for both JobId
and JobRunnerKey
.public ManagedScheduledCronJob(String id, com.atlassian.scheduler.JobRunner jobRunner, boolean runOncePerCluster, String cronExpression, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable, boolean clusteredOnly, long lockWaitTime, @Nullable TimeoutPolicy timeoutPolicy)
id
is used for both JobId
and JobRunnerKey
.public ManagedScheduledCronJob(String id, com.atlassian.scheduler.JobRunner jobRunner, boolean runOncePerCluster, String cronExpression, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable, boolean clusteredOnly, long lockWaitTime, @Nullable TimeoutPolicy timeoutPolicy, boolean disabledByDefault)
id
is used for both JobId
and JobRunnerKey
.public ManagedScheduledCronJob(com.atlassian.scheduler.config.JobId jobId, com.atlassian.scheduler.JobRunner jobRunner, com.atlassian.scheduler.config.JobConfig jobConfig, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable)
public ManagedScheduledCronJob(com.atlassian.scheduler.config.JobId jobId, com.atlassian.scheduler.JobRunner jobRunner, com.atlassian.scheduler.config.JobConfig jobConfig, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable, boolean clusteredOnly)
public ManagedScheduledCronJob(com.atlassian.scheduler.config.JobId 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)
public static ManagedScheduledCronJob disabledByDefault(String id, com.atlassian.scheduler.JobRunner jobRunner, boolean runOncePerCluster, String cronExpression, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable)
public String getDefaultCronExpression()
public boolean equals(Object o)
equals
in class AbstractManagedScheduledJob
public int hashCode()
hashCode
in class AbstractManagedScheduledJob
Copyright © 2003–2019 Atlassian. All rights reserved.