Package org.activeio.stats

Examples of org.activeio.stats.IndentPrinter


     */
  public String toString() {
    if( detailedStats ) {
      StringWriter w = new StringWriter();
      PrintWriter pw = new PrintWriter(w);   
      dump(new IndentPrinter(pw, "  "));
      return w.getBuffer().toString();
    } else {
      StringWriter w = new StringWriter();
      PrintWriter pw = new PrintWriter(w);
      IndentPrinter out = new IndentPrinter(pw, "  ");
          out.println("Throughput           : "+ getThroughputKps() +" k/s and " + getThroughputRps() +" records/s");
          out.printIndent();
          out.println("Latency with force   : "+getAvgSyncedLatencyMs()+" ms"  );
          out.printIndent();
          out.println("Latency without force: "+getAvgUnSyncedLatencyMs()+" ms"  );
      return w.getBuffer().toString();     
    }
    }
View Full Code Here

TOP

Related Classes of org.activeio.stats.IndentPrinter

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.