public interface Job
Modifier and Type | Method and Description |
---|---|
void |
execute(JobExecution execution)
Run the
JobExecution and update the meta information like status
and statistics as necessary. |
JobParametersIncrementer |
getJobParametersIncrementer()
If clients need to generate new parameters for the next execution in a
sequence they can use this incrementer.
|
JobParametersValidator |
getJobParametersValidator()
A validator for the job parameters of a
JobExecution . |
java.lang.String |
getName() |
boolean |
isRestartable()
Flag to indicate if this job can be restarted, at least in principle.
|
java.lang.String getName()
boolean isRestartable()
void execute(JobExecution execution)
JobExecution
and update the meta information like status
and statistics as necessary. This method should not throw any exceptions
for failed execution. Clients should be careful to inspect the
JobExecution
status to determine success or failure.execution
- a JobExecution
@Nullable JobParametersIncrementer getJobParametersIncrementer()
null
,
in the case that this job does not have a natural sequence.JobParametersValidator getJobParametersValidator()
JobExecution
. Clients of
a Job may need to validate the parameters for a launch, before or during
the execution.null
)