@InterfaceAudience.Private public class MutableTimeHistogram extends MutableRangeHistogram
Modifier and Type | Field and Description |
---|---|
private long[] |
ranges |
private String |
rangeType |
private AtomicLongArray |
rangeVals |
desc, name
MAX_METRIC_NAME, MEAN_METRIC_NAME, MEDIAN_METRIC_NAME, MIN_METRIC_NAME, NINETIETH_PERCENTILE_METRIC_NAME, NINETY_FIFTH_PERCENTILE_METRIC_NAME, NINETY_NINETH_PERCENTILE_METRIC_NAME, NUM_OPS_METRIC_NAME, SEVENTY_FIFTH_PERCENTILE_METRIC_NAME
Constructor and Description |
---|
MutableTimeHistogram(org.apache.hadoop.metrics2.MetricsInfo info) |
MutableTimeHistogram(String name,
String description) |
Modifier and Type | Method and Description |
---|---|
long[] |
getRange()
Returns the ranges to be counted
|
String |
getRangeType()
Returns the type of range histogram size or time
|
AtomicLongArray |
getRangeVals()
Returns the range counts
|
add, snapshot, updateSnapshotRangeMetrics
getMax, getMean, getMin, updateSnapshotMetrics
private final String rangeType
private final long[] ranges
private final AtomicLongArray rangeVals
public MutableTimeHistogram(org.apache.hadoop.metrics2.MetricsInfo info)
public String getRangeType()
MutableRangeHistogram
getRangeType
in class MutableRangeHistogram
public long[] getRange()
MutableRangeHistogram
getRange
in class MutableRangeHistogram
public AtomicLongArray getRangeVals()
MutableRangeHistogram
getRangeVals
in class MutableRangeHistogram
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.