org.apache.hadoop.hbase.util
Class YammerHistogramUtils
java.lang.Object
org.apache.hadoop.hbase.util.YammerHistogramUtils
public final class YammerHistogramUtils
- extends Object
Utility functions for working with Yammer Metrics.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
.
getPrettyHistogramReport
public static String getPrettyHistogramReport(com.yammer.metrics.core.Histogram h)
- Returns:
- pretty summary of
hist
.
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.