org.apache.hadoop.hbase.util
Class YammerHistogramUtils

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

public final class YammerHistogramUtils
extends Object

Utility functions for working with Yammer Metrics.


Method Summary
static String getHistogramReport(com.yammer.metrics.core.Histogram hist)
           
static String getShortHistogramReport(com.yammer.metrics.core.Histogram hist)
           
static com.yammer.metrics.core.Histogram newHistogram(com.yammer.metrics.stats.Sample sample)
          Create a new Histogram instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newHistogram

public static com.yammer.metrics.core.Histogram newHistogram(com.yammer.metrics.stats.Sample 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.yammer.metrics.core.Histogram hist)
Returns:
an abbreviated summary of hist.

getHistogramReport

public static String getHistogramReport(com.yammer.metrics.core.Histogram hist)
Returns:
a summary of hist.


Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.