@Override public String getTPSAsString() { return tps.toString(); }
public void dump(PrintStream p, String indent) { p.println(indent + "<tps" + (autoupdate ? " auto='true'>" : ">") + this.toString() + "</tps>"); }
@Override public void dump (PrintStream ps, String indent) { ps.printf ("%sin-transit=%d/%d, head=%d, tail=%d, paused=%d, outstanding=%d, active-sessions=%d/%d%s%n", indent, getActiveTransactions(), getInTransit(), head, tail, pausedCounter.get(), getOutstandingTransactions(), getActiveSessions(), maxSessions, (tps != null ? ", " + tps.toString() : "") ); if (metrics != null) { metrics.dump(ps, indent); } }
public void run (){ long stamp = System.nanoTime(); for (int i=0; i<COUNT; i++) { sp1.out(key, Boolean.TRUE); tpsOut.tick(); } long stamp2 = System.nanoTime(); t1.add(stamp2-stamp); System.err.println("Write "+key+" out: "+(stamp2-stamp)/1000000 + " " + tpsOut.toString()); } }
public void run (){ long stamp = System.nanoTime(); for (int i=0; i<COUNT; i++) { sp1.in(key); tpsIn.tick(); } long stamp2 = System.nanoTime(); t2.add(stamp2-stamp); System.err.println("Read "+key+" in: "+(stamp2-stamp)/1000000 + " " + tpsIn.toString()); } }
getInTransit(), head, tail, pausedCounter.get(), getOutstandingTransactions(), getActiveSessions(), maxSessions, tps.toString(), prof != null ? prof.getElapsedInMillis() : -1