org.springframework.batch.core.job
Class SimpleJob
java.lang.Object
org.springframework.batch.core.job.AbstractJob
org.springframework.batch.core.job.SimpleJob
- All Implemented Interfaces:
- Job, BeanNameAware, InitializingBean
public class SimpleJob
- extends AbstractJob
Simple implementation of (@link Job} interface providing the ability to run a
JobExecution
. Sequentially executes a job by iterating through its
list of steps.
- Author:
- Lucas Ward, Dave Syer
Method Summary |
void |
execute(JobExecution execution)
Run the specified job by looping through the steps and delegating to the
Step . |
Methods inherited from class org.springframework.batch.core.job.AbstractJob |
addStep, afterPropertiesSet, getCompositeListener, getJobRepository, getName, getSteps, isRestartable, registerJobExecutionListener, setBeanName, setJobExecutionListeners, setJobRepository, setName, setRestartable, setSteps, toString |
SimpleJob
public SimpleJob()
execute
public void execute(JobExecution execution)
throws JobExecutionException
- Run the specified job by looping through the steps and delegating to the
Step
.
- Parameters:
execution
- a JobExecution
- Throws:
StartLimitExceededException
- if start limit of one of the steps
was exceeded
JobExecutionException
- See Also:
Job.execute(org.springframework.batch.core.JobExecution)
Copyright © 2009 SpringSource. All Rights Reserved.