public class ScheduledCronJob extends AbstractScheduledJob
Schedule.forCronExpression(String, TimeZone)
timeZone} in the
schedule of its JobConfig
is set to null
(system default).
You may need to customize it.
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.
Constructor and Description |
---|
ScheduledCronJob(String id,
com.atlassian.scheduler.JobRunner jobRunner,
boolean runOncePerCluster,
String cronExpression)
id is used for both JobRunnerKey to register the jobRunner
and JobId to schedule the job. |
ScheduledCronJob(String id,
com.atlassian.scheduler.JobRunner jobRunner,
boolean runOncePerCluster,
String cronExpression,
boolean clusteredOnly)
id is used for both JobRunnerKey to register the jobRunner
and JobId to schedule the job. |
ScheduledCronJob(String id,
com.atlassian.scheduler.JobRunner jobRunner,
boolean runOncePerCluster,
String cronExpression,
int jitterSecs)
id is used for both JobRunnerKey to register the jobRunner
and JobId to schedule the job. |
ScheduledCronJob(String id,
com.atlassian.scheduler.JobRunner jobRunner,
boolean runOncePerCluster,
String cronExpression,
int jitterSecs,
boolean clusteredOnly)
id is used for both JobRunnerKey to register the jobRunner
and JobId to schedule the job. |
Modifier and Type | Method and Description |
---|---|
static com.atlassian.scheduler.config.JobConfig |
toJobConfig(String jobRunnerKey,
boolean runOncePerCluster,
String cronExpression) |
static com.atlassian.scheduler.config.JobConfig |
toJobConfig(String jobRunnerKey,
boolean runOncePerCluster,
String cronExpression,
int jitterSecs) |
equals, getJobConfig, getJobRunner, hashCode, isClusteredOnly, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
sameJobId
public ScheduledCronJob(String id, com.atlassian.scheduler.JobRunner jobRunner, boolean runOncePerCluster, String cronExpression)
id
is used for both JobRunnerKey
to register the jobRunner
and JobId
to schedule the job.public ScheduledCronJob(String id, com.atlassian.scheduler.JobRunner jobRunner, boolean runOncePerCluster, String cronExpression, int jitterSecs)
id
is used for both JobRunnerKey
to register the jobRunner
and JobId
to schedule the job.public ScheduledCronJob(String id, com.atlassian.scheduler.JobRunner jobRunner, boolean runOncePerCluster, String cronExpression, boolean clusteredOnly)
id
is used for both JobRunnerKey
to register the jobRunner
and JobId
to schedule the job.Copyright © 2003–2017 Atlassian. All rights reserved.