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
Modifier and TypeFieldDescriptionprivate static DecimalFormat
Used formatting doubles so only two places after decimal point. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getHistogramReport
(com.codahale.metrics.Histogram hist) Returns a summary ofhist
.static String
getPrettyHistogramReport
(com.codahale.metrics.Histogram h) Returns pretty summary ofhist
.static String
getShortHistogramReport
(com.codahale.metrics.Histogram hist) Returns an abbreviated summary ofhist
.static com.codahale.metrics.Histogram
newHistogram
(com.codahale.metrics.Reservoir sample) Create a newHistogram
instance.
-
Field Details
-
DOUBLE_FORMAT
Used formatting doubles so only two places after decimal point.
-
-
Constructor Details
-
YammerHistogramUtils
private YammerHistogramUtils()
-
-
Method Details
-
newHistogram
Create a newHistogram
instance. 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
.
-