|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.core.job.SimpleStepHandler
public class SimpleStepHandler
Implementation of StepHandler that manages repository and restart
concerns.
| Constructor Summary | |
|---|---|
SimpleStepHandler()
Convenient default constructor for configuration usage. |
|
SimpleStepHandler(JobRepository jobRepository)
|
|
SimpleStepHandler(JobRepository jobRepository,
ExecutionContext executionContext)
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Check mandatory properties (jobRepository). |
StepExecution |
handleStep(Step step,
JobExecution execution)
Handle a step and return the execution for it. |
void |
setExecutionContext(ExecutionContext executionContext)
A context containing values to be added to the step execution before it is handled. |
void |
setJobRepository(JobRepository jobRepository)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleStepHandler()
public SimpleStepHandler(JobRepository jobRepository)
jobRepository -
public SimpleStepHandler(JobRepository jobRepository,
ExecutionContext executionContext)
jobRepository - executionContext - | Method Detail |
|---|
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionInitializingBean.afterPropertiesSet()public void setJobRepository(JobRepository jobRepository)
jobRepository - the jobRepository to setpublic void setExecutionContext(ExecutionContext executionContext)
executionContext - the execution context to set
public StepExecution handleStep(Step step,
JobExecution execution)
throws JobInterruptedException,
JobRestartException,
StartLimitExceededException
StepHandlerJobExecution, but should manage the persistence of the
StepExecution if required (e.g. at least it needs to be added to
a repository before the step can eb executed).
handleStep in interface StepHandlerstep - a Stepexecution - a JobExecution
JobInterruptedException - if there is an interruption
JobRestartException - if there is a problem restarting a failed
step
StartLimitExceededException - if the step exceeds its start limitJob.execute(JobExecution),
Step.execute(StepExecution)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||