@InterfaceAudience.Private public class MutableHistogram extends MutableMetric implements MetricHistogram
| Modifier and Type | Field and Description |
|---|---|
protected Counter |
counter |
protected java.lang.String |
desc |
protected FastLongHistogram |
histogram |
protected java.lang.String |
name |
MAX_METRIC_NAME, MEAN_METRIC_NAME, MEDIAN_METRIC_NAME, MIN_METRIC_NAME, NINETIETH_PERCENTILE_METRIC_NAME, NINETY_EIGHTH_PERCENTILE_METRIC_NAME, NINETY_FIFTH_PERCENTILE_METRIC_NAME, NINETY_NINE_POINT_NINETH_PERCENTILE_METRIC_NAME, NINETY_NINETH_PERCENTILE_METRIC_NAME, NUM_OPS_METRIC_NAME, SEVENTY_FIFTH_PERCENTILE_METRIC_NAME, TWENTY_FIFTH_PERCENTILE_METRIC_NAME| Modifier | Constructor and Description |
|---|---|
|
MutableHistogram(MetricsInfo info) |
|
MutableHistogram(java.lang.String name,
java.lang.String description) |
protected |
MutableHistogram(java.lang.String name,
java.lang.String description,
long maxExpected) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(long val)
Add a single value to a histogram's stream of values.
|
void |
snapshot(MetricsRecordBuilder metricsRecordBuilder,
boolean all) |
protected void |
updateSnapshotMetrics(MetricsRecordBuilder metricsRecordBuilder,
FastLongHistogram histo) |
protected final FastLongHistogram histogram
protected final java.lang.String name
protected final java.lang.String desc
protected final Counter counter
public MutableHistogram(MetricsInfo info)
public MutableHistogram(java.lang.String name,
java.lang.String description)
protected MutableHistogram(java.lang.String name,
java.lang.String description,
long maxExpected)
public void add(long val)
MetricHistogramadd in interface MetricHistogrampublic void snapshot(MetricsRecordBuilder metricsRecordBuilder,
boolean all)
protected void updateSnapshotMetrics(MetricsRecordBuilder metricsRecordBuilder,
FastLongHistogram histo)