Package org.apache.hadoop.metrics.util

Examples of org.apache.hadoop.metrics.util.MetricsTimeVaryingRate.inc()


            LOG.info("Error register " + call.getMethodName(), iae);
            m = (MetricsTimeVaryingRate) rpcDetailedMetrics.registry.get(
                call.getMethodName());
          }
        }
        m.inc(processingTime);

        if (verbose) log("Return: "+value);

        return new ObjectWritable(method.getReturnType(), value);
View Full Code Here


  @Test
  public void testBasic() throws Exception {
    MetricsRegistry mr = new MetricsRegistry();
    MetricsTimeVaryingRate metric = new MetricsTimeVaryingRate("test", mr);
    metric.inc(1, 10);

    MetricsContext context = MetricsUtil.getContext("test");
    MetricsRecord metricsRecord = MetricsUtil.createRecord(context, "test");
    metric.pushMetric(metricsRecord);
View Full Code Here

            m = (MetricsTimeVaryingRate) rpcMetrics.registry.get(
                call.getMethodName());
          }
        }
        // record call time in microseconds
        m.inc(processingMicroTime);

        if (verbose) log("Return: "+value);

        return new ObjectWritable(method.getReturnType(), value);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.