Class ManagedScheduledCronJob
- java.lang.Object
-
- com.atlassian.confluence.schedule.AbstractManagedScheduledJob
-
- com.atlassian.confluence.schedule.ManagedScheduledCronJob
-
- All Implemented Interfaces:
ManagedScheduledJob
,ScheduledJob
public class ManagedScheduledCronJob extends AbstractManagedScheduledJob
Managed job definition for cron based jobs.If your job is only meaningful in clustered environment, use the constructor that can set
clusteredOnly
totrue
so that your job won't be scheduled in non-clustered environments.
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.schedule.AbstractManagedScheduledJob
DEFAULT_LOCK_WAIT_TIME_MS, DEFAULT_TIMEOUT_POLICY, LOCK_WAIT_TIME_PARAMETER_NAME, TIMEOUT_POLICY_PARAMETER_NAME
-
-
Constructor Summary
Constructors Constructor Description 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, boolean disabledByDefault)
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(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, boolean disabledByDefault)
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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class com.atlassian.confluence.schedule.AbstractManagedScheduledJob
canDisable, canRunAdhoc, disabledByDefault, getJobConfig, getJobId, getJobRunner, getLockWaitTime, getTimeoutPolicy, isClusteredOnly, isEditable, isKeepingHistory, isLocalJob, toString
-
-
-
-
Constructor Detail
-
ManagedScheduledCronJob
public ManagedScheduledCronJob(String id, com.atlassian.scheduler.JobRunner jobRunner, boolean runOncePerCluster, String cronExpression, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable)
For atlassian-scheduler.id
is used for bothJobId
andJobRunnerKey
.
-
ManagedScheduledCronJob
public 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.id
is used for bothJobId
andJobRunnerKey
.
-
ManagedScheduledCronJob
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)
For atlassian-scheduler.id
is used for bothJobId
andJobRunnerKey
.
-
ManagedScheduledCronJob
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)
For atlassian-scheduler.id
is used for bothJobId
andJobRunnerKey
.
-
ManagedScheduledCronJob
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)
For atlassian-scheduler.
-
ManagedScheduledCronJob
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)
For atlassian-scheduler.
-
ManagedScheduledCronJob
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, boolean disabledByDefault)
For atlassian-scheduler.
-
ManagedScheduledCronJob
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)
For atlassian-scheduler.
-
ManagedScheduledCronJob
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, boolean disabledByDefault)
For atlassian-scheduler.
-
-
Method Detail
-
disabledByDefault
public static ManagedScheduledCronJob disabledByDefault(String id, com.atlassian.scheduler.JobRunner jobRunner, boolean runOncePerCluster, String cronExpression, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable)
-
getDefaultCronExpression
public String getDefaultCronExpression()
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classAbstractManagedScheduledJob
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractManagedScheduledJob
-
-