Class AvgMinMaxPercentileCounterSet
- java.lang.Object
 - 
- org.apache.zookeeper.server.metric.Metric
 - 
- org.apache.zookeeper.server.metric.AvgMinMaxPercentileCounterSet
 
 
 
- 
- All Implemented Interfaces:
 SummarySet
public class AvgMinMaxPercentileCounterSet extends Metric implements SummarySet
Generic set of long counters that keep track of min/max/avg for different keys. The counter is thread-safe 
- 
- 
Constructor Summary
Constructors Constructor Description AvgMinMaxPercentileCounterSet(String name) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(String key, long value)Register a value.voidaddDataPoint(String key, long value)voidreset()voidresetMax()Map<String,Object>values() 
 - 
 
- 
- 
Constructor Detail
- 
AvgMinMaxPercentileCounterSet
public AvgMinMaxPercentileCounterSet(String name)
 
 - 
 
- 
Method Detail
- 
addDataPoint
public void addDataPoint(String key, long value)
 
- 
resetMax
public void resetMax()
 
- 
add
public void add(String key, long value)
Description copied from interface:SummarySetRegister a value.This method is thread safe, The MetricsProvider will take care of synchronization.
- Specified by:
 addin interfaceSummarySet- Overrides:
 addin classMetric- Parameters:
 key- the key to access the Summary for the given keyvalue- current value
 
 - 
 
 -