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 voidadd(long value)Register a value.voidaddDataPoint(long value)doublegetAvg()longgetCount()longgetMax()longgetMin()longgetTotal()voidreset()voidresetMax()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:SummaryRegister a value.This method is thread safe, The MetricsProvider will take care of synchronization.
 
 - 
 
 -