1 package com.griddynamics.jagger.engine.e1.collector;
3 import static com.griddynamics.jagger.util.StandardMetricsNamesUtil.MAX_AGGREGATOR_ID;
13 return new MaxMetricAggregator();
16 private static class MaxMetricAggregator
implements MetricAggregator<Number> {
18 private Double value = null;
21 public void append(Number calculated) {
23 value = calculated.doubleValue();
25 value = Math.max(value, calculated.doubleValue());
30 public Double getAggregated() {
40 public String getName() {
41 return MAX_AGGREGATOR_ID;