Package org.apache.hadoop.hbase.rest.metrics

Examples of org.apache.hadoop.hbase.rest.metrics.RESTMetrics.shutdown()


    testData(tmax, timeout, test.getSucessfulPutCount(), incrementSucessfulPut);
    testData(tmax, timeout, test.getFailedGetCount(), incrementFailedGetRequests);
    testData(tmax, timeout, test.getFailedDeleteCount(), incrementFailedDeleteRequests);
    testData(tmax, timeout, test.getFailedPutCount(), incrementFailedPutRequests);

    test.shutdown();
  }

  // test minimum and maximum speed
  private void testData(double tmax, long tmin, float value, double requests) {
    assertTrue((requests / tmax) * 1000 <= 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.