private Map<String,Object> txnmgrInfo(TransactionManager txnmgr) { Map<String,Object> m = new LinkedHashMap<>(); m.put ("name", txnmgr.getName()); m.put ("type", txnmgr.getClass().getSimpleName()); m.put ("tail", txnmgr.getTail()); m.put ("head", txnmgr.getHead()); m.put ("inTransit", txnmgr.getInTransit()); m.put ("TPSAvg", txnmgr.getTPSAvg()); m.put ("TPSPeak", txnmgr.getTPSPeak()); m.put ("TPSPeakWhen", txnmgr.getTPSPeakWhen()); m.put ("TPSElapsed", txnmgr.getTPSElapsed()); m.put ("metrics", txnmgr.getMetrics().metrics()); return m; }
@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 update(TransactionStatusEvent e) { if (ui.isDestroyed()) { return; } int row = e.getSession(); events[row] = e; model.fireTableRowsUpdated(row, row); // table.getSelectionModel().setSelectionInterval(row, row); setBackgroundColor (row, color[e.getState().intValue()]); inTransit.setText (Long.toString (txnmgr.getInTransit())); outstanding.setText (Long.toString (txnmgr.getOutstandingTransactions())); } private void setBackgroundColor (int row, Color color) {
break; if (getInTransit() > Math.max(maxActiveSessions, activeSessions.get()) * 100) { evt.addMessage("WARNING: IN-TRANSIT TOO HIGH"); getInTransit(), head, tail, pausedCounter.get(), getOutstandingTransactions(), getActiveSessions(), maxSessions, tps.toString(), prof != null ? prof.getElapsedInMillis() : -1