Package org.apache.hadoop.metrics2.lib
Class MutableRangeHistogram
java.lang.Object
org.apache.hadoop.metrics2.lib.MutableMetric
org.apache.hadoop.metrics2.lib.MutableHistogram
org.apache.hadoop.metrics2.lib.MutableRangeHistogram
- All Implemented Interfaces:
MetricHistogram
- Direct Known Subclasses:
MutableSizeHistogram
,MutableTimeHistogram
@Private
public abstract class MutableRangeHistogram
extends MutableHistogram
implements MetricHistogram
Extended histogram implementation with metric range counters.
-
Field Summary
Fields inherited from class org.apache.hadoop.metrics2.lib.MutableHistogram
desc, histogram, name
Fields inherited from interface org.apache.hadoop.metrics2.MetricHistogram
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
-
Constructor Summary
ConstructorDescriptionMutableRangeHistogram
(String name, String description) MutableRangeHistogram
(org.apache.hadoop.metrics2.MetricsInfo info) -
Method Summary
Modifier and TypeMethodDescriptionlong
getCount()
Return the total number of values added to the histogram.abstract long[]
Returns the ranges to be countedabstract String
Returns the type of range histogram size or timevoid
snapshot
(org.apache.hadoop.metrics2.MetricsRecordBuilder metricsRecordBuilder, boolean all) void
updateSnapshotRangeMetrics
(org.apache.hadoop.metrics2.MetricsRecordBuilder metricsRecordBuilder, Snapshot snapshot) Methods inherited from class org.apache.hadoop.metrics2.lib.MutableHistogram
add, getMax, snapshot, updateSnapshotMetrics
Methods inherited from class org.apache.hadoop.metrics2.lib.MutableMetric
changed, clearChanged, setChanged, snapshot
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.metrics2.MetricHistogram
add
-
Constructor Details
-
MutableRangeHistogram
-
MutableRangeHistogram
-
-
Method Details
-
getRangeType
Returns the type of range histogram size or time -
getRanges
Returns the ranges to be counted -
snapshot
public void snapshot(org.apache.hadoop.metrics2.MetricsRecordBuilder metricsRecordBuilder, boolean all) - Overrides:
snapshot
in classMutableHistogram
-
updateSnapshotRangeMetrics
public void updateSnapshotRangeMetrics(org.apache.hadoop.metrics2.MetricsRecordBuilder metricsRecordBuilder, Snapshot snapshot) -
getCount
Description copied from interface:MetricHistogram
Return the total number of values added to the histogram.- Specified by:
getCount
in interfaceMetricHistogram
- Overrides:
getCount
in classMutableHistogram
- Returns:
- the total number of values.
-