类 FlowJob
- java.lang.Object
- org.springframework.batch.core.job.AbstractJob
- org.springframework.batch.core.job.flow.FlowJob
- 所有已实现的接口:
Job
,StepLocator
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.InitializingBean
- 直接已知子类:
JsrFlowJob
public class FlowJob extends AbstractJob
Implementation of theJob
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.- 从以下版本开始:
- 2.0
- 作者:
- Dave Syer
字段概要
从类继承的字段 org.springframework.batch.core.job.AbstractJob
logger
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected void
doExecute(JobExecution execution)
Extension point for subclasses allowing them to concentrate on processing logic and ignore listeners and repository calls.Step
getStep(java.lang.String stepName)
Retrieve the step with the given name.java.util.Collection<java.lang.String>
getStepNames()
Retrieve the step names.void
setFlow(Flow flow)
Public setter for the flow.从类继承的方法 org.springframework.batch.core.job.AbstractJob
afterPropertiesSet, execute, getDefaultExitStatusForFailure, getJobParametersIncrementer, getJobParametersValidator, getJobRepository, getName, handleStep, isRestartable, registerJobExecutionListener, setBeanName, setJobExecutionListeners, setJobParametersIncrementer, setJobParametersValidator, setJobRepository, setName, setRestartable, toString
方法详细资料
getStep
public Step getStep(java.lang.String stepName)
Retrieve the step with the given name. If there is no Step with the given name, then return null.- 指定者:
getStep
在接口中StepLocator
- 指定者:
getStep
在类中AbstractJob
- 参数:
stepName
- name of the step- 返回:
- the Step
getStepNames
public java.util.Collection<java.lang.String> getStepNames()
Retrieve the step names.- 指定者:
getStepNames
在接口中StepLocator
- 指定者:
getStepNames
在类中AbstractJob
- 返回:
- the step names
doExecute
protected void doExecute(JobExecution execution) throws JobExecutionException
从类复制的说明:AbstractJob
Extension point for subclasses allowing them to concentrate on processing logic and ignore listeners and repository calls. Implementations usually are concerned with the ordering of steps, and delegate actual step processing toAbstractJob.handleStep(Step, JobExecution)
.- 指定者:
doExecute
在类中AbstractJob
- 参数:
execution
- the currentJobExecution
- 抛出:
JobExecutionException
- to signal a fatal batch framework error (not a business or validation exception)- 另请参阅:
AbstractJob.doExecute(JobExecution)