com.endeca.portal.instrumentation
Class MetricsAggregator

java.lang.Object
  extended by com.endeca.portal.instrumentation.MetricsAggregator

public class MetricsAggregator
extends java.lang.Object

Simple one axis aggregator for metrics for summary display. It is fine that it is one axis, because the other axis will probably always be some sort of execution time, and people don't like charts greater than 2 dimensions. (Sometimes they are okay with 3d, but if you don't tell I won't).

Author:
huff

Nested Class Summary
static interface MetricsAggregator.MetricsAxis
           
static interface MetricsAggregator.MetricsFilter
          Return true if the metric should be included in the aggregator, false if it shouldn't
 
Constructor Summary
MetricsAggregator(java.lang.String id, MetricsAggregator.MetricsFilter filter, MetricsAggregator.MetricsAxis axis)
           
 
Method Summary
 void add(Metric metric)
           
 java.util.Map<java.lang.String,MetricsAggregation> getAxisValues()
           
 java.lang.String getId()
           
 MetricsAggregation getTotals()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetricsAggregator

public MetricsAggregator(java.lang.String id,
                         MetricsAggregator.MetricsFilter filter,
                         MetricsAggregator.MetricsAxis axis)
Method Detail

add

public void add(Metric metric)

getId

public java.lang.String getId()

getTotals

public MetricsAggregation getTotals()

getAxisValues

public java.util.Map<java.lang.String,MetricsAggregation> getAxisValues()