public class FlowJob extends AbstractJob
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.logger
Constructor and Description |
---|
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). |
Modifier and Type | Method and Description |
---|---|
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.
|
afterPropertiesSet, execute, getJobParametersIncrementer, getJobParametersValidator, getJobRepository, getName, handleStep, isRestartable, registerJobExecutionListener, setBeanName, setJobExecutionListeners, setJobParametersIncrementer, setJobParametersValidator, setJobRepository, setName, setRestartable, toString
public FlowJob()
FlowJob
with null name and no flow (invalid state).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)
Copyright © 2014 Pivotal. All rights reserved.