org.springframework.batch.core.job
Interface StepHandler

All Known Implementing Classes:
SimpleStepHandler

public interface StepHandler

Strategy interface for handling a Step on behalf of a Job.

Author:
Dave Syer

Method Summary
 StepExecution handleStep(Step step, JobExecution jobExecution)
          Handle a step and return the execution for it.
 

Method Detail

handleStep

StepExecution handleStep(Step step,
                         JobExecution jobExecution)
                         throws JobInterruptedException,
                                JobRestartException,
                                StartLimitExceededException
Handle a step and return the execution for it. Does not save the JobExecution, 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).

Parameters:
step - a Step
jobExecution - a JobExecution
Returns:
an execution of the step
Throws:
JobInterruptedException - if there is an interruption
JobRestartException - if there is a problem restarting a failed step
StartLimitExceededException - if the step exceeds its start limit
See Also:
Job.execute(JobExecution), Step.execute(StepExecution)


Copyright © 2013 SpringSource. All Rights Reserved.