Class AvgMinMaxCounter
java.lang.Object
org.apache.zookeeper.server.metric.Metric
org.apache.zookeeper.server.metric.AvgMinMaxCounter
- All Implemented Interfaces:
Summary
Generic long counter that keep track of min/max/avg. The counter is
thread-safe
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AvgMinMaxCounter
-
-
Method Details
-
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() -
reset
public void reset() -
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.
-
values
-