Class AvgMinMaxCounter
- java.lang.Object
-
- org.apache.zookeeper.server.metric.Metric
-
- org.apache.zookeeper.server.metric.AvgMinMaxCounter
-
-
Constructor Summary
Constructors Constructor Description AvgMinMaxCounter(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(long value)
Register a value.void
addDataPoint(long value)
double
getAvg()
long
getCount()
long
getMax()
long
getMin()
long
getTotal()
void
reset()
void
resetMax()
Map<String,Object>
values()
-
-
-
Constructor Detail
-
AvgMinMaxCounter
public AvgMinMaxCounter(String name)
-
-
Method Detail
-
addDataPoint
public void addDataPoint(long value)
-
getAvg
public double getAvg()
-
getCount
public long getCount()
-
getMax
public long getMax()
-
getMin
public long getMin()
-
getTotal
public long getTotal()
-
resetMax
public void resetMax()
-
add
public void add(long value)
Description copied from interface:Summary
Register a value.This method is thread safe, The MetricsProvider will take care of synchronization.
-
-