Class ManagedScheduledSimpleJob
- java.lang.Object
-
- com.atlassian.confluence.schedule.AbstractManagedScheduledJob
-
- com.atlassian.confluence.schedule.ManagedScheduledSimpleJob
-
- All Implemented Interfaces:
ManagedScheduledJob
,ScheduledJob
public class ManagedScheduledSimpleJob extends AbstractManagedScheduledJob
Managed job definition for interval 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 ManagedScheduledSimpleJob(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.ManagedScheduledSimpleJob(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.ManagedScheduledSimpleJob(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.ManagedScheduledSimpleJob(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, TimeoutPolicy timeoutPolicy)
For atlassian-scheduler.ManagedScheduledSimpleJob(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, TimeoutPolicy timeoutPolicy, boolean disabledByDefault)
For atlassian-scheduler.ManagedScheduledSimpleJob(String id, com.atlassian.scheduler.JobRunner jobRunner, boolean runOncePerCluster, long repeatInterval, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable)
For atlassian-scheduler.ManagedScheduledSimpleJob(String id, com.atlassian.scheduler.JobRunner jobRunner, boolean runOncePerCluster, long repeatInterval, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable, boolean clusteredOnly)
For atlassian-scheduler.ManagedScheduledSimpleJob(String id, com.atlassian.scheduler.JobRunner jobRunner, boolean runOncePerCluster, long repeatInterval, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable, boolean clusteredOnly, long lockWaitTime, TimeoutPolicy timeoutPolicy)
For atlassian-scheduler.ManagedScheduledSimpleJob(String id, com.atlassian.scheduler.JobRunner jobRunner, boolean runOncePerCluster, long repeatInterval, int repeatCount, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable)
For atlassian-scheduler.ManagedScheduledSimpleJob(String id, com.atlassian.scheduler.JobRunner jobRunner, boolean runOncePerCluster, long repeatInterval, int repeatCount, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable, boolean clusteredOnly)
For atlassian-scheduler.ManagedScheduledSimpleJob(String id, com.atlassian.scheduler.JobRunner jobRunner, boolean runOncePerCluster, long repeatInterval, int repeatCount, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable, boolean clusteredOnly, long lockWaitTime, TimeoutPolicy timeoutPolicy)
For atlassian-scheduler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Integer
getDefaultRepeatCount()
Long
getDefaultRepeatInterval()
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
-
ManagedScheduledSimpleJob
public ManagedScheduledSimpleJob(String id, com.atlassian.scheduler.JobRunner jobRunner, boolean runOncePerCluster, long repeatInterval, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable)
For atlassian-scheduler.id
is used for bothJobId
andJobRunnerKey
.
-
ManagedScheduledSimpleJob
public ManagedScheduledSimpleJob(String id, com.atlassian.scheduler.JobRunner jobRunner, boolean runOncePerCluster, long repeatInterval, int repeatCount, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable)
For atlassian-scheduler.id
is used for bothJobId
andJobRunnerKey
.
-
ManagedScheduledSimpleJob
public ManagedScheduledSimpleJob(String id, com.atlassian.scheduler.JobRunner jobRunner, boolean runOncePerCluster, long repeatInterval, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable, boolean clusteredOnly)
For atlassian-scheduler.id
is used for bothJobId
andJobRunnerKey
.
-
ManagedScheduledSimpleJob
public ManagedScheduledSimpleJob(String id, com.atlassian.scheduler.JobRunner jobRunner, boolean runOncePerCluster, long repeatInterval, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable, boolean clusteredOnly, long lockWaitTime, TimeoutPolicy timeoutPolicy)
For atlassian-scheduler.id
is used for bothJobId
andJobRunnerKey
.
-
ManagedScheduledSimpleJob
public ManagedScheduledSimpleJob(String id, com.atlassian.scheduler.JobRunner jobRunner, boolean runOncePerCluster, long repeatInterval, int repeatCount, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable, boolean clusteredOnly)
For atlassian-scheduler.id
is used for bothJobId
andJobRunnerKey
.
-
ManagedScheduledSimpleJob
public ManagedScheduledSimpleJob(String id, com.atlassian.scheduler.JobRunner jobRunner, boolean runOncePerCluster, long repeatInterval, int repeatCount, boolean editable, boolean keepingHistory, boolean canRunAdhoc, boolean canDisable, boolean clusteredOnly, long lockWaitTime, TimeoutPolicy timeoutPolicy)
For atlassian-scheduler.id
is used for bothJobId
andJobRunnerKey
.
-
ManagedScheduledSimpleJob
public ManagedScheduledSimpleJob(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.
-
ManagedScheduledSimpleJob
public ManagedScheduledSimpleJob(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.
-
ManagedScheduledSimpleJob
public ManagedScheduledSimpleJob(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.
-
ManagedScheduledSimpleJob
public ManagedScheduledSimpleJob(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, TimeoutPolicy timeoutPolicy)
For atlassian-scheduler.
-
ManagedScheduledSimpleJob
public ManagedScheduledSimpleJob(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, TimeoutPolicy timeoutPolicy, boolean disabledByDefault)
For atlassian-scheduler.
-
-
Method Detail
-
getDefaultRepeatInterval
public Long getDefaultRepeatInterval()
-
getDefaultRepeatCount
public Integer getDefaultRepeatCount()
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classAbstractManagedScheduledJob
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractManagedScheduledJob
-
-