public boolean done() { int i=0; synchronized (list) { for (Object o : list) { getLogWriter().info("List:"+(++i)+":"+o); if (o instanceof StatisticsImpl) { StatisticsImpl si = (StatisticsImpl)o; getLogWriter().info("stat:"+si.getTextId()); if (si.getTextId().contains(tenuredPoolName)) { sampler.addLocalStatListener(l, si, "currentUsedMemory"); return true; } } } } return false; } public String description() {
public boolean done() { int i=0; synchronized (list) { for (Object obj : list) { statSampler.getLogger().convertToLogWriter().info("List:"+(++i)+":"+obj); if (obj instanceof StatisticsImpl) { StatisticsImpl si = (StatisticsImpl)obj; statSampler.getLogger().convertToLogWriter().info("stat:"+si.getTextId()); if (si.getTextId().contains(tenuredPoolName)) { statSampler.addLocalStatListener(listener, si, "currentUsedMemory"); return true; } } } } return false; } public String description() {
statSampler.addLocalStatListener(listener, statSamplerStats, statName); assertTrue(statSampler.getLocalListeners().size() == 1);
StatisticsImpl si = (StatisticsImpl) o; if (si.getTextId().contains(tenuredPoolName) && si.getType().getName().contains("PoolStats")) { sampler.addLocalStatListener(this.statListener, si, "currentUsedMemory"); if (this.cache.getLoggerI18n().fineEnabled()) { this.cache.getLoggerI18n().fine("Registered stat listener for " + si.getTextId());
survivorPoolName))) && si.getType().getName().contains("PoolStats")) { sampler.addLocalStatListener(this.statListener, si, "currentUsedMemory"); if (this.cache.getLoggerI18n().fineEnabled()) { this.cache.getLoggerI18n().fine("Registered stat listener for " + si.getTextId());