类 JsrFlowJob
- java.lang.Object
- org.springframework.batch.core.job.AbstractJob
- org.springframework.batch.core.job.flow.FlowJob
- org.springframework.batch.core.jsr.job.flow.JsrFlowJob
- 所有已实现的接口:
Job
,StepLocator
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.InitializingBean
public class JsrFlowJob extends FlowJob
JSR-352 specific extension of theFlowJob
.- 从以下版本开始:
- 3.0
- 作者:
- Michael Minella
字段概要
从类继承的字段 org.springframework.batch.core.job.AbstractJob
logger
构造器概要
构造器 构造器 说明 JsrFlowJob()
No arg constructor (invalid state)JsrFlowJob(java.lang.String name)
Main constructor
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected void
doExecute(JobExecution execution)
Extension point for subclasses allowing them to concentrate on processing logic and ignore listeners and repository calls.protected ExitStatus
getDefaultExitStatusForFailure(java.lang.Throwable ex, JobExecution execution)
Default mapping from throwable toExitStatus
.void
setJobExplorer(JobExplorer jobExplorer)
从类继承的方法 org.springframework.batch.core.job.flow.FlowJob
getStep, getStepNames, setFlow
从类继承的方法 org.springframework.batch.core.job.AbstractJob
afterPropertiesSet, execute, getJobParametersIncrementer, getJobParametersValidator, getJobRepository, getName, handleStep, isRestartable, registerJobExecutionListener, setBeanName, setJobExecutionListeners, setJobParametersIncrementer, setJobParametersValidator, setJobRepository, setName, setRestartable, toString
构造器详细资料
JsrFlowJob
public JsrFlowJob()
No arg constructor (invalid state)
JsrFlowJob
public JsrFlowJob(java.lang.String name)
Main constructor- 参数:
name
- of the flow
方法详细资料
setJobExplorer
public void setJobExplorer(JobExplorer jobExplorer)
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
在类中FlowJob
- 参数:
execution
- the currentJobExecution
- 抛出:
JobExecutionException
- to signal a fatal batch framework error (not a business or validation exception)- 另请参阅:
AbstractJob.doExecute(JobExecution)
getDefaultExitStatusForFailure
protected ExitStatus getDefaultExitStatusForFailure(java.lang.Throwable ex, JobExecution execution)
Default mapping from throwable toExitStatus
.- 覆盖:
getDefaultExitStatusForFailure
在类中AbstractJob
- 参数:
ex
- the cause of the failureexecution
- theJobExecution
instance.- 返回:
- an
ExitStatus