Class DefaultStepExecutionAggregator
java.lang.Object
org.springframework.batch.core.partition.support.DefaultStepExecutionAggregator
- All Implemented Interfaces:
StepExecutionAggregator
Convenience class for aggregating a set of
StepExecution
instances into a
single result.- Since:
- 2.1
- Author:
- Dave Syer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
aggregate
(StepExecution result, Collection<StepExecution> executions) Aggregates the input executions into the resultStepExecution
.
-
Constructor Details
-
DefaultStepExecutionAggregator
public DefaultStepExecutionAggregator()
-
-
Method Details
-
aggregate
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
- Specified by:
aggregate
in interfaceStepExecutionAggregator
- Parameters:
result
- the result to overwriteexecutions
- the inputs- See Also:
- status - choosing the highest value using
-