Class YammerHistogramUtils

java.lang.Object
org.apache.hadoop.hbase.util.YammerHistogramUtils

@Private public final class YammerHistogramUtils extends Object
Utility functions for working with Yammer Metrics.
  • Field Details

  • Constructor Details

  • Method Details

    • newHistogram

      public static com.codahale.metrics.Histogram newHistogram(com.codahale.metrics.Reservoir sample)
      Create a new Histogram instance. These constructors are not public in 2.2.0, so we use reflection to find them.
    • getShortHistogramReport

      public static String getShortHistogramReport(com.codahale.metrics.Histogram hist)
      Returns an abbreviated summary of hist.
    • getHistogramReport

      public static String getHistogramReport(com.codahale.metrics.Histogram hist)
      Returns a summary of hist.
    • getPrettyHistogramReport

      public static String getPrettyHistogramReport(com.codahale.metrics.Histogram h)
      Returns pretty summary of hist.