Search in sources :

Example 1 with MutableHistogram

use of org.apache.hadoop.metrics2.lib.MutableHistogram in project hbase by apache.

the class MetricsThriftServerSourceImpl method incMethodTime.

@Override
public void incMethodTime(String name, long time) {
    MutableHistogram s = getMetricsRegistry().getHistogram(name);
    s.add(time);
}
Also used : MutableHistogram(org.apache.hadoop.metrics2.lib.MutableHistogram)

Example 2 with MutableHistogram

use of org.apache.hadoop.metrics2.lib.MutableHistogram in project hbase by apache.

the class BaseSourceImpl method updateHistogram.

@Override
public void updateHistogram(String name, long value) {
    MutableHistogram histo = metricsRegistry.getHistogram(name);
    histo.add(value);
}
Also used : MutableHistogram(org.apache.hadoop.metrics2.lib.MutableHistogram)

Aggregations

MutableHistogram (org.apache.hadoop.metrics2.lib.MutableHistogram)2