org.springframework.batch.core.job.flow.support.state
Class MaxValueFlowExecutionAggregator

java.lang.Object
  extended by org.springframework.batch.core.job.flow.support.state.MaxValueFlowExecutionAggregator
All Implemented Interfaces:
FlowExecutionAggregator

public class MaxValueFlowExecutionAggregator
extends Object
implements FlowExecutionAggregator

Implementation of the FlowExecutionAggregator interface that aggregates FlowExecutionStatus', using the status with the high precedence as the aggregate status. See FlowExecutionStatus for details on status precedence.

Since:
2.0
Author:
Dave Syer

Constructor Summary
MaxValueFlowExecutionAggregator()
           
 
Method Summary
 FlowExecutionStatus aggregate(Collection<FlowExecution> executions)
          Aggregate all of the FlowExecutionStatuses of the FlowExecutions into one status.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaxValueFlowExecutionAggregator

public MaxValueFlowExecutionAggregator()
Method Detail

aggregate

public FlowExecutionStatus aggregate(Collection<FlowExecution> executions)
Aggregate all of the FlowExecutionStatuses of the FlowExecutions into one status. The aggregate status will be the status with the highest precedence.

Specified by:
aggregate in interface FlowExecutionAggregator
Parameters:
executions - the executions to aggregate
Returns:
a summary status for the whole lot
See Also:
FlowExecutionAggregator.aggregate(Collection)


Copyright © 2009 SpringSource. All Rights Reserved.