Class NodeMetrics

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

public final class NodeMetrics extends Object
Optional extended node metrics. Used when extended metrics is enabled (See AerospikeClient.enableMetrics(MetricsPolicy)).
  • Field Details

    • bytesInCounter

      public final Counter bytesInCounter
    • bytesOutCounter

      public final Counter bytesOutCounter
  • Constructor Details

    • NodeMetrics

      public NodeMetrics(MetricsPolicy policy)
      Initialize extended node metrics.
  • Method Details

    • addLatency

      public void addLatency(String namespace, LatencyType type, long elapsed)
      Add elapsed time in nanoseconds to histogram map buckets corresponding to namespace invalid input: '&' latency type.
    • getHistograms

      public Histograms getHistograms()
      Returns the available Histograms (Containers for namespace-aggregated latency buckets)
      Returns:
      the Histograms object