Package org.apache.hadoop.metrics2.util


@Public @Evolving package org.apache.hadoop.metrics2.util
General helpers for implementing source and sinks
  • Class
    Description
    org.apache.hadoop.metrics2.util.Contracts
    Additional helpers (besides guava Preconditions) for programming by contract
    This util class provides a method to register an MBean using our standard naming convention as described in the doc for {link MBeans.register(String, String, Object).
    org.apache.hadoop.metrics2.util.Metrics2Util
    Utility class to simplify creation of hadoop metrics2 source/sink.
    org.apache.hadoop.metrics2.util.Metrics2Util.NameValuePair
    A pair of a name and its corresponding value.
    org.apache.hadoop.metrics2.util.Metrics2Util.TopN
    A fixed-size priority queue, used to retrieve top-n of offered entries.
    A metrics cache for sinks that don't support sparse updates.
    org.apache.hadoop.metrics2.util.MetricsCache.Record
    Cached record
    org.apache.hadoop.metrics2.util.Quantile
    Specifies a quantile (with error bounds) to be watched by a SampleQuantiles object.
    org.apache.hadoop.metrics2.util.QuantileEstimator
     
    org.apache.hadoop.metrics2.util.SampleQuantiles
    Implementation of the Cormode, Korn, Muthukrishnan, and Srivastava algorithm for streaming calculation of targeted high-percentile epsilon-approximate quantiles.
    org.apache.hadoop.metrics2.util.SampleStat
    Helper to compute running sample stats
    org.apache.hadoop.metrics2.util.SampleStat.MinMax
    Helper to keep running min/max
    Helpers to handle server addresses