public class RepeatJobConfiguration extends JobConfiguration implements JobContainerConfiguration
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE_IDENTIFIER
The identifier for this job type.
|
Constructor and Description |
---|
RepeatJobConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addJob(JobConfiguration job)
Adds a job to the job list.
|
void |
addJob(JobConfiguration job,
int index)
Adds a job to the job list.
|
void |
clearJobs()
Removes all jobs from the job list.
|
java.lang.Object |
clone() |
java.lang.String |
getDescription()
Returns a short description of this job.
|
JobConfiguration[] |
getJobs()
Returns the job list which might be edited by the caller.
|
int |
getNumRepeats()
Returns the number of times the sub-jobs should be repeated each time the repeat-job is executed.
|
java.lang.String |
getTypeIdentifier()
Returns a unique identifier for this configuration type.
|
void |
removeJobAt(int index)
Removes the job at the given index.
|
void |
setJobs(JobConfiguration[] jobs)
Sets the job list to the given list.
|
void |
setNumRepeats(int numRepeats)
Sets the number of times the sub-jobs should be repeated each time the repeat-job is executed.
|
checkConfiguration, toString
public static final java.lang.String TYPE_IDENTIFIER
public java.lang.String getDescription()
JobConfiguration
getDescription
in class JobConfiguration
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class JobConfiguration
java.lang.CloneNotSupportedException
public JobConfiguration[] getJobs()
JobContainerConfiguration
getJobs
in interface JobContainerConfiguration
public void setJobs(JobConfiguration[] jobs)
JobContainerConfiguration
setJobs
in interface JobContainerConfiguration
jobs
- New job list.public void addJob(JobConfiguration job)
JobContainerConfiguration
addJob
in interface JobContainerConfiguration
job
- Job to be added.public void clearJobs()
JobContainerConfiguration
clearJobs
in interface JobContainerConfiguration
public void removeJobAt(int index)
JobContainerConfiguration
removeJobAt
in interface JobContainerConfiguration
index
- Index of the job to be removed.public void addJob(JobConfiguration job, int index)
JobContainerConfiguration
addJob
in interface JobContainerConfiguration
job
- Job to be added.index
- Index where the job should be added.public java.lang.String getTypeIdentifier()
Configuration
getTypeIdentifier
in interface Configuration
public int getNumRepeats()
public void setNumRepeats(int numRepeats)
numRepeats
- number of times the job should be repeated. If smaller than 0, it is set to zero.