Class Histograms

java.lang.Object
com.aerospike.client.metrics.Histograms

public class Histograms extends Object
  • 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

      public void addLatency(String namespace, LatencyType type, long elapsed)
      Increment count of bucket corresponding to the namespace invalid input: '&' elapsed time in nanoseconds.
    • getBuckets

      public LatencyBuckets[] getBuckets(String namespace)
      Return the LatencyBuckets for a given namespace
    • getMap

      Return the histograms map