Package org.apache.hadoop.metrics2.util
@Public
@Evolving
package org.apache.hadoop.metrics2.util
General helpers for implementing source and sinks
-
ClassDescriptionAdditional helpers (besides guava Preconditions) for programming by contractThis 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).Utility class to simplify creation of hadoop metrics2 source/sink.A pair of a name and its corresponding value.A fixed-size priority queue, used to retrieve top-n of offered entries.A metrics cache for sinks that don't support sparse updates.Cached recordSpecifies a quantile (with error bounds) to be watched by aSampleQuantilesobject.Implementation of the Cormode, Korn, Muthukrishnan, and Srivastava algorithm for streaming calculation of targeted high-percentile epsilon-approximate quantiles.Helper to compute running sample statsHelper to keep running min/maxHelpers to handle server addresses