|
||||||||||
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.flow.FlowJob
public class FlowJob
Implementation of the Job
interface that allows for complex flows of
steps, rather than requiring sequential execution. In general, this job
implementation was designed to be used behind a parser, allowing for a
namespace to abstract away details.
Field Summary |
---|
Fields inherited from class org.springframework.batch.core.job.AbstractJob |
---|
logger |
Constructor Summary | |
---|---|
FlowJob()
Create a FlowJob with null name and no flow (invalid state). |
|
FlowJob(String name)
Create a FlowJob with provided name and no flow (invalid state). |
Method Summary | |
---|---|
protected void |
doExecute(JobExecution execution)
Extension point for subclasses allowing them to concentrate on processing logic and ignore listeners and repository calls. |
Step |
getStep(String stepName)
Retrieve the step with the given name. |
Collection<String> |
getStepNames()
Retrieve the step names. |
void |
setFlow(Flow flow)
Public setter for the flow. |
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 FlowJob()
FlowJob
with null name and no flow (invalid state).
public FlowJob(String name)
FlowJob
with provided name and no flow (invalid state).
Method Detail |
---|
public void setFlow(Flow flow)
flow
- the flow to setpublic Step getStep(String stepName)
getStep
in interface StepLocator
getStep
in class AbstractJob
public Collection<String> getStepNames()
getStepNames
in interface StepLocator
getStepNames
in class AbstractJob
protected void doExecute(JobExecution execution) throws JobExecutionException
AbstractJob
AbstractJob.handleStep(Step, JobExecution)
.
doExecute
in class AbstractJob
execution
- the current JobExecution
JobExecutionException
- to signal a fatal batch framework error
(not a business or validation exception)AbstractJob.doExecute(JobExecution)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |