long runOneClient(final Class<? extends Test> cmd, final int startRow, final int perClientRunRows,
    final int totalRows, boolean flushCommits, boolean writeToWAL, boolean useTags, int noOfTags,
    Connection connection, final Status status) throws IOException {
    status
      .setStatus("Start " + cmd + " at offset " + startRow + " for " + perClientRunRows + " rows");
    long totalElapsedTime;

    TestOptions options = new TestOptions(startRow, perClientRunRows, totalRows, tableName,
      flushCommits, writeToWAL, useTags, noOfTags, connection);
    final Test t;
    try {
      Constructor<? extends Test> constructor =
        cmd.getDeclaredConstructor(Configuration.class, TestOptions.class, Status.class);
      t = constructor.newInstance(this.conf, options, status);
    } catch (NoSuchMethodException e) {
      throw new IllegalArgumentException("Invalid command class: " + cmd.getName()
        + ".  It does not provide a constructor as described by"
        + "the javadoc comment.  Available constructors are: "
        + Arrays.toString(cmd.getConstructors()));
    } catch (Exception e) {
      throw new IllegalStateException("Failed to construct command class", e);
    }
    totalElapsedTime = t.test();

    status.setStatus("Finished " + cmd + " in " + totalElapsedTime + "ms at offset " + startRow
      + " for " + perClientRunRows + " rows");
    return totalElapsedTime;
  }
Format passed integer.
@param number the integer to format
@return Returns zero-prefixed 10-byte wide decimal version of passed number (Does absolute in
        case number is negative).
hbase-rest/src/test/java/org/apache/hadoop/hbase/rest/PerformanceEvaluation.java