Package org.apache.hadoop.hbase.util
Class YammerHistogramUtils
java.lang.Object
org.apache.hadoop.hbase.util.YammerHistogramUtils
Utility functions for working with Yammer Metrics.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static DecimalFormatUsed formatting doubles so only two places after decimal point. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetHistogramReport(com.codahale.metrics.Histogram hist) Returns a summary ofhist.static StringgetPrettyHistogramReport(com.codahale.metrics.Histogram h) Returns pretty summary ofhist.static StringgetShortHistogramReport(com.codahale.metrics.Histogram hist) Returns an abbreviated summary ofhist.static com.codahale.metrics.HistogramnewHistogram(com.codahale.metrics.Reservoir sample) Create a newHistograminstance.
-
Field Details
-
DOUBLE_FORMAT
Used formatting doubles so only two places after decimal point.
-
-
Constructor Details
-
YammerHistogramUtils
private YammerHistogramUtils()
-
-
Method Details
-
newHistogram
Create a newHistograminstance. These constructors are not public in 2.2.0, so we use reflection to find them. -
getShortHistogramReport
Returns an abbreviated summary ofhist. -
getHistogramReport
Returns a summary ofhist. -
getPrettyHistogramReport
Returns pretty summary ofhist.
-