|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.core.job.AbstractJob
org.springframework.batch.core.job.SimpleJob
public class SimpleJob
Simple implementation of Job interface providing the ability to run a
JobExecution. Sequentially executes a job by iterating through its
list of steps. Any Step that fails will fail the job. The job is
considered complete when all steps have been executed.
| Field Summary |
|---|
| Fields inherited from class org.springframework.batch.core.job.AbstractJob |
|---|
logger |
| Constructor Summary | |
|---|---|
SimpleJob()
Default constructor for job with null name |
|
SimpleJob(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
addStep(Step step)
Convenience method for adding a single step to the job. |
protected void |
doExecute(JobExecution execution)
Handler of steps sequentially as provided, checking each one for success before moving to the next. |
Step |
getStep(java.lang.String stepName)
Retrieve the step with the given name. |
java.util.Collection<java.lang.String> |
getStepNames()
Convenience method for clients to inspect the steps for this job. |
void |
setSteps(java.util.List<Step> steps)
Public setter for the steps in this job. |
| Methods inherited from class org.springframework.batch.core.job.AbstractJob |
|---|
afterPropertiesSet, execute, getJobParametersIncrementer, getName, handleStep, isRestartable, registerJobExecutionListener, setBeanName, setJobExecutionListeners, setJobParametersIncrementer, setJobRepository, setName, setRestartable, toString, updateStepExecution |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleJob()
public SimpleJob(java.lang.String name)
name - | Method Detail |
|---|
public void setSteps(java.util.List<Step> steps)
addStep(Step).
steps - the steps to executepublic java.util.Collection<java.lang.String> getStepNames()
getStepNames in interface StepLocatorgetStepNames in class AbstractJobpublic void addStep(Step step)
step - a Step to addpublic Step getStep(java.lang.String stepName)
AbstractJob
getStep in interface StepLocatorgetStep in class AbstractJob
protected void doExecute(JobExecution execution)
throws JobInterruptedException,
JobRestartException,
StartLimitExceededException
StepExecution
successfully processed if it exists, and null if none were processed.
doExecute in class AbstractJobexecution - the current JobExecution
JobInterruptedException
JobRestartException
StartLimitExceededExceptionAbstractJob.handleStep(Step, JobExecution)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||