public synchronized long getCount() { if (children == null) { return 0; } long count = 0; for (Iterator<PollCountStatisticImpl> iter = children.iterator(); iter.hasNext();) { PollCountStatisticImpl child = iter.next(); count += child.getCount(); } return count; }
/** * @return the number of times per second that the counter is incrementing * since the last reset. */ public double getFrequency() { double count = getCount(); double time = System.currentTimeMillis() - getStartTime(); return count * 1000.0 / time; }
protected void appendFieldDescription(StringBuffer buffer) { buffer.append(" count: "); buffer.append(Long.toString(getCount())); super.appendFieldDescription(buffer); }
/** * @return the average time period that elapses between counter increments * since the last reset. */ public double getPeriod() { double count = getCount(); if (count == 0) { return 0; } double time = System.currentTimeMillis() - getStartTime(); return time / (count * 1000.0); }
/** * @return the number of messages cached in memory by this destination */ public long getMessagesCached() { return destination.getDestinationStatistics().getMessagesCached().getCount(); }
public long getMessagesCached() { return destination.getDestinationStatistics().getMessagesCached().getCount(); }
public long getTotalMessagesCached() { return safeGetBroker().getDestinationStatistics().getMessagesCached().getCount(); }
statsMessage.setLong("expiredCount", stats.getExpired().getCount()); statsMessage.setLong("inflightCount", stats.getInflight().getCount()); statsMessage.setLong("messagesCached", stats.getMessagesCached().getCount()); statsMessage.setLong("messagesCached", stats.getMessagesCached().getCount()); statsMessage.setInt("memoryPercentUsage", systemUsage.getMemoryUsage().getPercentUsage()); statsMessage.setLong("memoryUsage", systemUsage.getMemoryUsage().getUsage());
public synchronized long getCount() { if (children == null) { return 0; } long count = 0; for (Iterator<PollCountStatisticImpl> iter = children.iterator(); iter.hasNext();) { PollCountStatisticImpl child = iter.next(); count += child.getCount(); } return count; }
public synchronized long getCount() { if (children == null) { return 0; } long count = 0; for (Iterator<PollCountStatisticImpl> iter = children.iterator(); iter.hasNext();) { PollCountStatisticImpl child = iter.next(); count += child.getCount(); } return count; }
public synchronized long getCount() { if (children == null) { return 0; } long count = 0; for (Iterator<PollCountStatisticImpl> iter = children.iterator(); iter.hasNext();) { PollCountStatisticImpl child = iter.next(); count += child.getCount(); } return count; }
public synchronized long getCount() { if (children == null) { return 0; } long count = 0; for (Iterator<PollCountStatisticImpl> iter = children.iterator(); iter.hasNext();) { PollCountStatisticImpl child = iter.next(); count += child.getCount(); } return count; }
/** * @return the number of times per second that the counter is incrementing * since the last reset. */ public double getFrequency() { double count = getCount(); double time = System.currentTimeMillis() - getStartTime(); return count * 1000.0 / time; }
/** * @return the number of times per second that the counter is incrementing * since the last reset. */ public double getFrequency() { double count = getCount(); double time = System.currentTimeMillis() - getStartTime(); return count * 1000.0 / time; }
protected void appendFieldDescription(StringBuffer buffer) { buffer.append(" count: "); buffer.append(Long.toString(getCount())); super.appendFieldDescription(buffer); }
/** * @return the average time period that elapses between counter increments * since the last reset. */ public double getPeriod() { double count = getCount(); if (count == 0) { return 0; } double time = System.currentTimeMillis() - getStartTime(); return time / (count * 1000.0); }
protected void appendFieldDescription(StringBuffer buffer) { buffer.append(" count: "); buffer.append(Long.toString(getCount())); super.appendFieldDescription(buffer); }
/** * @return the average time period that elapses between counter increments * since the last reset. */ public double getPeriod() { double count = getCount(); if (count == 0) { return 0; } double time = System.currentTimeMillis() - getStartTime(); return time / (count * 1000.0); }
public long getMessagesCached() { return destination.getDestinationStatistics().getMessagesCached().getCount(); }
/** * @return the number of messages cached in memory by this destination */ public long getMessagesCached() { return destination.getDestinationStatistics().getMessagesCached().getCount(); }