类 SimpleJobBuilder
- java.lang.Object
- org.springframework.batch.core.job.builder.JobBuilderHelper<SimpleJobBuilder>
- org.springframework.batch.core.job.builder.SimpleJobBuilder
public class SimpleJobBuilder extends JobBuilderHelper<SimpleJobBuilder>
- 从以下版本开始:
- 2.2
- 作者:
- Dave Syer
嵌套类概要
从类继承的嵌套类/接口 org.springframework.batch.core.job.builder.JobBuilderHelper
JobBuilderHelper.CommonJobProperties
字段概要
从类继承的字段 org.springframework.batch.core.job.builder.JobBuilderHelper
logger
构造器概要
构造器 构造器 说明 SimpleJobBuilder(JobBuilderHelper<?> parent)
Create a new builder initialized with any properties in the parent.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Job
build()
JobFlowBuilder
next(JobExecutionDecider decider)
Continue with this decider if the previous step was successful.SimpleJobBuilder
next(Step step)
Continue or end a job with this step if the previous step was successful.FlowBuilder.TransitionBuilder<FlowJobBuilder>
on(java.lang.String pattern)
Branch into a flow conditional on the outcome of the current step.FlowBuilder.SplitBuilder<FlowJobBuilder>
split(org.springframework.core.task.TaskExecutor executor)
JobFlowBuilder
start(JobExecutionDecider decider)
Start with this decider.SimpleJobBuilder
start(Step step)
Start the job with this step.从类继承的方法 org.springframework.batch.core.job.builder.JobBuilderHelper
enhance, getJobRepository, getName, incrementer, isRestartable, listener, preventRestart, repository, validator
构造器详细资料
SimpleJobBuilder
public SimpleJobBuilder(JobBuilderHelper<?> parent)
Create a new builder initialized with any properties in the parent. The parent is copied, so it can be re-used.- 参数:
parent
- the parent to use
方法详细资料
start
public SimpleJobBuilder start(Step step)
Start the job with this step.- 参数:
step
- a step to start with- 返回:
- this for fluent chaining
on
public FlowBuilder.TransitionBuilder<FlowJobBuilder> on(java.lang.String pattern)
Branch into a flow conditional on the outcome of the current step.- 参数:
pattern
- a pattern for the exit status of the current step- 返回:
- a builder for fluent chaining
start
public JobFlowBuilder start(JobExecutionDecider decider)
Start with this decider. Returns a flow builder and when the flow is ended a job builder will be returned to continue the job configuration if needed.- 参数:
decider
- a decider to execute first- 返回:
- builder for fluent chaining
next
public JobFlowBuilder next(JobExecutionDecider decider)
Continue with this decider if the previous step was successful. Returns a flow builder and when the flow is ended a job builder will be returned to continue the job configuration if needed.- 参数:
decider
- a decider to execute next- 返回:
- builder for fluent chaining
next
public SimpleJobBuilder next(Step step)
Continue or end a job with this step if the previous step was successful.- 参数:
step
- a step to execute next- 返回:
- this for fluent chaining
split
public FlowBuilder.SplitBuilder<FlowJobBuilder> split(org.springframework.core.task.TaskExecutor executor)
- 参数:
executor
- instance ofTaskExecutor
to be used.- 返回:
- builder for fluent chaining