public class ScheduledSimpleJob extends AbstractScheduledJob
firstRunTime
in the schedule of
is JobConfig
is set to null
(the job should run as soon as possible).
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 |
---|
ScheduledSimpleJob(String id,
com.atlassian.scheduler.JobRunner jobRunner,
boolean runOncePerCluster,
long repeatInterval)
id is used for both JobRunnerKey to register the jobRunner
and JobId to schedule the job. |
ScheduledSimpleJob(String id,
com.atlassian.scheduler.JobRunner jobRunner,
boolean runOncePerCluster,
long repeatInterval,
boolean clusteredOnly)
id is used for both JobRunnerKey to register the jobRunner
and JobId to schedule the job. |
ScheduledSimpleJob(String id,
com.atlassian.scheduler.JobRunner jobRunner,
boolean runOncePerCluster,
long repeatInterval,
int repeatCount,
int jitterSecs)
id is used for both JobRunnerKey to register the jobRunner
and JobId to schedule the job. |
ScheduledSimpleJob(String id,
com.atlassian.scheduler.JobRunner jobRunner,
boolean runOncePerCluster,
long repeatInterval,
int repeatCount,
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,
long repeatInterval,
int repeatCount) |
static com.atlassian.scheduler.config.JobConfig |
toJobConfig(String jobRunnerKey,
boolean runOncePerCluster,
long repeatInterval,
int repeatCount,
int jitterSecs) |
equals, getJobConfig, getJobRunner, hashCode, isClusteredOnly, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
sameJobId
public ScheduledSimpleJob(String id, com.atlassian.scheduler.JobRunner jobRunner, boolean runOncePerCluster, long repeatInterval)
id
is used for both JobRunnerKey
to register the jobRunner
and JobId
to schedule the job.public ScheduledSimpleJob(String id, com.atlassian.scheduler.JobRunner jobRunner, boolean runOncePerCluster, long repeatInterval, boolean clusteredOnly)
id
is used for both JobRunnerKey
to register the jobRunner
and JobId
to schedule the job.public ScheduledSimpleJob(String id, com.atlassian.scheduler.JobRunner jobRunner, boolean runOncePerCluster, long repeatInterval, int repeatCount, int jitterSecs)
id
is used for both JobRunnerKey
to register the jobRunner
and JobId
to schedule the job.public ScheduledSimpleJob(String id, com.atlassian.scheduler.JobRunner jobRunner, boolean runOncePerCluster, long repeatInterval, int repeatCount, int jitterSecs, boolean clusteredOnly)
id
is used for both JobRunnerKey
to register the jobRunner
and JobId
to schedule the job.public static com.atlassian.scheduler.config.JobConfig toJobConfig(String jobRunnerKey, boolean runOncePerCluster, long repeatInterval, int repeatCount)
public static com.atlassian.scheduler.config.JobConfig toJobConfig(String jobRunnerKey, boolean runOncePerCluster, long repeatInterval, int repeatCount, int jitterSecs)
Copyright © 2003–2021 Atlassian. All rights reserved.