Package com.aerospike.client.metrics
Class Histograms
java.lang.Object
com.aerospike.client.metrics.Histograms
-
Constructor Summary
ConstructorsConstructorDescriptionHistograms(int columnCount, int shift) A Histograms object is a container for a map of namespaces to histograms (as defined by their associated LatencyBuckets) invalid input: '&' their histogram properties -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLatency(String namespace, LatencyType type, long elapsed) Increment count of bucket corresponding to the namespace invalid input: '&' elapsed time in nanoseconds.getBuckets(String namespace) Return the LatencyBuckets for a given namespacegetMap()Return the histograms map
-
Constructor Details
-
Histograms
public Histograms(int columnCount, int shift) A Histograms object is a container for a map of namespaces to histograms (as defined by their associated LatencyBuckets) invalid input: '&' their histogram properties- Parameters:
columnCount- number of histogram columns or "buckets"shift- power of 2 multiple between each range bucket in histogram starting at bucket 3. The first 2 buckets are "<=1ms" and ">1ms".
-
-
Method Details
-
addLatency
Increment count of bucket corresponding to the namespace invalid input: '&' elapsed time in nanoseconds. -
getBuckets
Return the LatencyBuckets for a given namespace -
getMap
Return the histograms map
-