@InterfaceAudience.Private public final class YammerHistogramUtils extends Object
| Modifier and Type | Field and Description | 
|---|---|
| private static DecimalFormat | DOUBLE_FORMATUsed 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)Returns a summary of  hist. | 
| static String | getPrettyHistogramReport(com.codahale.metrics.Histogram h)Returns pretty summary of  hist. | 
| static String | getShortHistogramReport(com.codahale.metrics.Histogram hist)Returns an abbreviated summary of  hist. | 
| static com.codahale.metrics.Histogram | newHistogram(com.codahale.metrics.Reservoir sample)Create a new  Histograminstance. | 
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–2020 The Apache Software Foundation. All rights reserved.