public void dump(IndentPrinter out) { out.printIndent(); out.println("factory {"); out.incrementIndent(); JMSConnectionStatsImpl[] array = getConnections(); for (int i = 0; i < array.length; i++) { JMSConnectionStatsImpl connectionStat = (JMSConnectionStatsImpl)array[i]; connectionStat.dump(out); } out.decrementIndent(); out.printIndent(); out.println("}"); out.flush(); }
this.stats = new JMSConnectionStatsImpl(sessions, this instanceof XAConnection); this.factoryStats.addConnection(this); this.timeCreated = System.currentTimeMillis();
public String toString() { StringBuffer buffer = new StringBuffer("connection{ "); JMSSessionStatsImpl[] array = getSessions(); for (int i = 0; i < array.length; i++) { if (i > 0) { buffer.append(", "); } buffer.append(Integer.toString(i)); buffer.append(" = "); buffer.append(array[i]); } buffer.append(" }"); return buffer.toString(); }
/** * @param statsEnabled the statsEnabled to set */ public void setStatsEnabled(boolean statsEnabled) { this.stats.setEnabled(statsEnabled); }
/** * @return the statsEnabled */ public boolean isStatsEnabled() { return this.stats.isEnabled(); }
/** * @param enabled the enabled to set */ public void setEnabled(boolean enabled) { super.setEnabled(enabled); JMSConnectionStatsImpl[] stats = getConnections(); int size = stats.length; for (int i = 0; i < size; i++) { stats[i].setEnabled(enabled); } } }
/** * @return the statsEnabled */ public boolean isStatsEnabled() { return this.stats.isEnabled(); }
public void reset() { super.reset(); JMSSessionStatsImpl[] stats = getSessions(); int size = stats.length; for (int i = 0; i < size; i++) { stats[i].reset(); } }
/** * @param statsEnabled the statsEnabled to set */ public void setStatsEnabled(boolean statsEnabled) { this.stats.setEnabled(statsEnabled); }
protected void dumpStats(Connection connection) { ActiveMQConnection c = (ActiveMQConnection)connection; c.getConnectionStats().dump(new IndentPrinter()); } }
/** * @return the statsEnabled */ public boolean isStatsEnabled() { return this.stats.isEnabled(); }
this.stats = new JMSConnectionStatsImpl(sessions, this instanceof XAConnection); this.factoryStats.addConnection(this); this.timeCreated = System.currentTimeMillis();
/** * @param enabled the enabled to set */ public void setEnabled(boolean enabled) { super.setEnabled(enabled); JMSSessionStatsImpl[] stats = getSessions(); int size = stats.length; for (int i = 0; i < size; i++) { stats[i].setEnabled(enabled); } }
/** * @param statsEnabled the statsEnabled to set */ public void setStatsEnabled(boolean statsEnabled) { this.stats.setEnabled(statsEnabled); }
public void dump(IndentPrinter out) { out.printIndent(); out.println("factory {"); out.incrementIndent(); JMSConnectionStatsImpl[] array = getConnections(); for (int i = 0; i < array.length; i++) { JMSConnectionStatsImpl connectionStat = (JMSConnectionStatsImpl)array[i]; connectionStat.dump(out); } out.decrementIndent(); out.printIndent(); out.println("}"); out.flush(); }
/** * @return the statsEnabled */ public boolean isStatsEnabled() { return this.stats.isEnabled(); }
this.stats = new JMSConnectionStatsImpl(sessions, this instanceof XAConnection); this.factoryStats.addConnection(this); this.timeCreated = System.currentTimeMillis();
public void dump(IndentPrinter out) { out.printIndent(); out.println("connection {"); out.incrementIndent(); JMSSessionStatsImpl[] array = getSessions(); for (int i = 0; i < array.length; i++) { JMSSessionStatsImpl sessionStat = (JMSSessionStatsImpl)array[i]; out.printIndent(); out.println("session {"); out.incrementIndent(); sessionStat.dump(out); out.decrementIndent(); out.printIndent(); out.println("}"); } out.decrementIndent(); out.printIndent(); out.println("}"); out.flush(); } }
/** * @param statsEnabled the statsEnabled to set */ public void setStatsEnabled(boolean statsEnabled) { this.stats.setEnabled(statsEnabled); }
public void dump(IndentPrinter out) { out.printIndent(); out.println("factory {"); out.incrementIndent(); JMSConnectionStatsImpl[] array = getConnections(); for (int i = 0; i < array.length; i++) { JMSConnectionStatsImpl connectionStat = (JMSConnectionStatsImpl)array[i]; connectionStat.dump(out); } out.decrementIndent(); out.printIndent(); out.println("}"); out.flush(); }