Package org.apache.hadoop.hdfs.protocol.ClientProxyRequests

Examples of org.apache.hadoop.hdfs.protocol.ClientProxyRequests.PingRequest


  @Benchmark
  public void pingLatency(OutputStreamWriter results) throws Exception {
    results.write(new MeanDevAccumulator().addResults(new TimedCallable() {
      @Override
      public void callTimed() throws Exception {
        proxyTClientProxyProtocol.ping(new PingRequest(metaInfo));
      }
    }, WARMUP_SAMPLES, MEASURED_SAMPLES).report());
    results.write("  |  ");

    results.write(new MeanDevAccumulator().addResults(new TimedCallable() {
      @Override
      public void callTimed() throws Exception {
        proxyClientProxyProtocol.ping(new PingRequest(metaInfo));
      }
    }, WARMUP_SAMPLES, MEASURED_SAMPLES).report());
    results.write("  |  ");

    results.write(new MeanDevAccumulator().addResults(new TimedCallable() {
      @Override
      public void callTimed() throws Exception {
        directClientProxyProtocol.ping(new PingRequest(metaInfo));
      }
    }, WARMUP_SAMPLES, MEASURED_SAMPLES).report());
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hdfs.protocol.ClientProxyRequests.PingRequest

Copyright © 2018 www.massapicom. 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.