类 DefaultStepExecutionAggregator
- java.lang.Object
- org.springframework.batch.core.partition.support.DefaultStepExecutionAggregator
- 所有已实现的接口:
StepExecutionAggregator
public class DefaultStepExecutionAggregator extends java.lang.Object implements StepExecutionAggregator
Convenience class for aggregating a set ofStepExecution
instances into a single result.- 从以下版本开始:
- 2.1
- 作者:
- Dave Syer
构造器概要
构造器 构造器 说明 DefaultStepExecutionAggregator()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
aggregate(StepExecution result, java.util.Collection<StepExecution> executions)
Aggregates the input executions into the resultStepExecution
.
构造器详细资料
DefaultStepExecutionAggregator
public DefaultStepExecutionAggregator()
方法详细资料
aggregate
public void aggregate(StepExecution result, java.util.Collection<StepExecution> executions)
Aggregates the input executions into the resultStepExecution
. The aggregated fields are- status - choosing the highest value using
BatchStatus.max(BatchStatus, BatchStatus)
- exitStatus - using
ExitStatus.and(ExitStatus)
- commitCount, rollbackCount, etc. - by arithmetic sum
- 指定者:
aggregate
在接口中StepExecutionAggregator
- 参数:
result
- the result to overwriteexecutions
- the inputs- 另请参阅:
#aggregate(StepExecution, Collection)
- status - choosing the highest value using