Search in sources :

Example 11 with MutableQuantiles

use of org.apache.hadoop.metrics2.lib.MutableQuantiles in project hadoop by apache.

the class DataNodeVolumeMetrics method addMetadastaOperationLatency.

public void addMetadastaOperationLatency(final long latency) {
    totalMetadataOperations.incr();
    metadataOperationRate.add(latency);
    for (MutableQuantiles q : metadataOperationLatencyQuantiles) {
        q.add(latency);
    }
}
Also used : MutableQuantiles(org.apache.hadoop.metrics2.lib.MutableQuantiles)

Aggregations

MutableQuantiles (org.apache.hadoop.metrics2.lib.MutableQuantiles)7 Test (org.junit.Test)4 MetricsRecordBuilder (org.apache.hadoop.metrics2.MetricsRecordBuilder)3 Quantile (org.apache.hadoop.metrics2.util.Quantile)2 File (java.io.File)1 MetricsSource (org.apache.hadoop.metrics2.MetricsSource)1 MetricsCollectorImpl (org.apache.hadoop.metrics2.impl.MetricsCollectorImpl)1 Matchers.anyLong (org.mockito.Matchers.anyLong)1