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.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. |
private static DecimalFormat DOUBLE_FORMAT
public static com.yammer.metrics.core.Histogram newHistogram(com.yammer.metrics.stats.Sample sample)
Histogram
instance. These constructors are
not public in 2.2.0, so we use reflection to find them.public static String getShortHistogramReport(com.yammer.metrics.core.Histogram hist)
hist
.public static String getHistogramReport(com.yammer.metrics.core.Histogram hist)
hist
.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.