类 JsrSplitState
- java.lang.Object
- org.springframework.batch.core.job.flow.support.state.AbstractState
- org.springframework.batch.core.job.flow.support.state.SplitState
- org.springframework.batch.core.jsr.job.flow.support.state.JsrSplitState
- 所有已实现的接口:
FlowHolder
,State
public class JsrSplitState extends SplitState
JSR-352 states that artifacts cannot set the ExitStatus from within a split for a job. Because of this, this state will reset the exit status once the flows have completed (prior to aggregation of the results).- 从以下版本开始:
- 3.0
- 作者:
- Michael Minella
构造器概要
构造器 构造器 说明 JsrSplitState(java.util.Collection<Flow> flows, java.lang.String name)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected FlowExecutionStatus
doAggregation(java.util.Collection<FlowExecution> results, FlowExecutor executor)
Resets theJobExecution
's exit status before aggregating the results of the flows within the split.从类继承的方法 org.springframework.batch.core.job.flow.support.state.SplitState
getFlows, handle, isEndState, setTaskExecutor
从类继承的方法 org.springframework.batch.core.job.flow.support.state.AbstractState
getName, toString
构造器详细资料
JsrSplitState
public JsrSplitState(java.util.Collection<Flow> flows, java.lang.String name)
- 参数:
flows
-Flow
s to be executed in parallelname
- the name to be associated with the split state.
方法详细资料
doAggregation
protected FlowExecutionStatus doAggregation(java.util.Collection<FlowExecution> results, FlowExecutor executor)
Resets theJobExecution
's exit status before aggregating the results of the flows within the split.- 覆盖:
doAggregation
在类中SplitState
- 参数:
results
- theFlowExecution
s from each of the flows executed within this splitexecutor
- theFlowExecutor
used to execute the flows