@InterfaceAudience.Private public final class YammerHistogramUtils extends Object
Modifier and Type | Field and Description |
---|---|
private static DecimalFormat |
DOUBLE_FORMAT
Used formatting doubles so only two places after decimal point.
|
Modifier | Constructor and Description |
---|---|
private |
YammerHistogramUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getHistogramReport(com.codahale.metrics.Histogram hist) |
static String |
getPrettyHistogramReport(com.codahale.metrics.Histogram h) |
static String |
getShortHistogramReport(com.codahale.metrics.Histogram hist) |
static com.codahale.metrics.Histogram |
newHistogram(com.codahale.metrics.Reservoir sample)
Create a new
Histogram instance. |
private static DecimalFormat DOUBLE_FORMAT
private YammerHistogramUtils()
public static com.codahale.metrics.Histogram newHistogram(com.codahale.metrics.Reservoir sample)
Histogram
instance. These constructors are
not public in 2.2.0, so we use reflection to find them.public static String getShortHistogramReport(com.codahale.metrics.Histogram hist)
hist
.public static String getHistogramReport(com.codahale.metrics.Histogram hist)
hist
.public static String getPrettyHistogramReport(com.codahale.metrics.Histogram h)
hist
.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.