Package org.apache.hadoop.ipc.metrics

Examples of org.apache.hadoop.ipc.metrics.RpcInstrumentation.detailed()


    // Number 4 includes getProtocolVersion()
    assertCounter("RpcProcessingTime_num_ops", 4L, rb);
    assertCounterGt("SentBytes", 0L, rb);
    assertCounterGt("ReceivedBytes", 0L, rb);

    MetricsSource detailed = rpcMetrics.detailed();
    rb = getMetrics(detailed);
    assertCounter("getProtocolVersion_num_ops", 1L, rb);
    // Number of calls to ping method should be 1
    assertCounter("ping_num_ops", 1L, rb);
    // Number of calls to echo method should be 2
View Full Code Here


    // Number 4 includes getProtocolVersion()
    assertCounter("RpcProcessingTime_num_ops", 4L, rb);
    assertCounterGt("SentBytes", 0L, rb);
    assertCounterGt("ReceivedBytes", 0L, rb);

    MetricsSource detailed = rpcMetrics.detailed();
    rb = getMetrics(detailed);
    assertCounter("getProtocolVersion_num_ops", 1L, rb);
    // Number of calls to ping method should be 1
    assertCounter("ping_num_ops", 1L, rb);
    // Number of calls to echo method should be 2
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.