Package org.apache.solr.metrics
Class AggregateMetric
- java.lang.Object
-
- org.apache.solr.metrics.AggregateMetric
-
- All Implemented Interfaces:
com.codahale.metrics.Metric
public class AggregateMetric extends Object implements com.codahale.metrics.Metric
This class is used for keeping several partial named values and providing useful statistics over them.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AggregateMetric.Update
Simple class to represent current value and how many times it was set.
-
Constructor Summary
Constructors Constructor Description AggregateMetric()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
void
clear(String name)
double
getMax()
double
getMean()
double
getMin()
double
getStdDev()
double
getSum()
Map<String,AggregateMetric.Update>
getValues()
boolean
isEmpty()
void
set(String name, Object value)
int
size()
String
toString()
-
-
-
Method Detail
-
clear
public void clear(String name)
-
clear
public void clear()
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
getValues
public Map<String,AggregateMetric.Update> getValues()
-
getMax
public double getMax()
-
getMin
public double getMin()
-
getMean
public double getMean()
-
getStdDev
public double getStdDev()
-
getSum
public double getSum()
-
-