|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.batch.core.job.AbstractJob org.springframework.batch.core.job.SimpleJob
public class SimpleJob
Simple implementation of (@link Job} interface providing the ability to run a
JobExecution
. Sequentially executes a job by iterating through its
list of steps.
Constructor Summary | |
---|---|
SimpleJob()
|
Method Summary | |
---|---|
void |
execute(JobExecution execution)
Run the specified job by looping through the steps and delegating to the Step . |
void |
registerJobExecutionListener(JobExecutionListener listener)
Register a single listener for the JobExecutionListener
callbacks. |
void |
setJobExecutionListeners(JobExecutionListener[] listeners)
Public setter for injecting JobExecutionListener s. |
void |
setJobRepository(JobRepository jobRepository)
Public setter for the JobRepository that is needed to manage the
state of the batch meta domain (jobs, steps, executions) during the life
of a job. |
Methods inherited from class org.springframework.batch.core.job.AbstractJob |
---|
addStep, getName, getSteps, isRestartable, setBeanName, setName, setRestartable, setSteps, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimpleJob()
Method Detail |
---|
public void setJobExecutionListeners(JobExecutionListener[] listeners)
JobExecutionListener
s. They will all
be given the listener callbacks at the appropriate point in the job.
listeners
- the listeners to set.public void registerJobExecutionListener(JobExecutionListener listener)
JobExecutionListener
callbacks.
listener
- a JobExecutionListener
public void execute(JobExecution execution) throws JobExecutionException
Step
.
execution
- a JobExecution
StartLimitExceededException
- if start limit of one of the steps
was exceeded
JobExecutionException
Job.execute(org.springframework.batch.core.JobExecution)
public void setJobRepository(JobRepository jobRepository)
JobRepository
that is needed to manage the
state of the batch meta domain (jobs, steps, executions) during the life
of a job.
jobRepository
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |