Statistic aStat = stats.getStatistic(sttsName[i]); if(aStat instanceof RangeStatistic) { Long current = new Long(((RangeStatistic)aStat).getCurrent()); Long high = new Long(((RangeStatistic)aStat).getHighWaterMark()); Long low = new Long(((RangeStatistic)aStat).getLowWaterMark()); statsMap.put(stts[i].getName() + " Current", current); statsMap.put(stts[i].getName() + " Max", high);
} else if (statistic instanceof RangeStatistic) { RangeStatistic rStat = (RangeStatistic) statistic; long highWaterMark = rStat.getHighWaterMark(); mbeanStat.add(new String[] { "High Water Mark", Long.toString(highWaterMark) }); long lowWaterMark = rStat.getLowWaterMark(); mbeanStat.add(new String[] { "Low Water Mark", Long.toString(lowWaterMark) }); long current = rStat.getCurrent(); mbeanStat.add(new String[] { "Current", Long.toString(current) });
Statistic aStat = stats.getStatistic(sttsName[i]); if(aStat instanceof RangeStatistic) { Long current = new Long(((RangeStatistic)aStat).getCurrent()); Long high = new Long(((RangeStatistic)aStat).getHighWaterMark()); Long low = new Long(((RangeStatistic)aStat).getLowWaterMark()); statsMap.put(stts[i].getName() + " Current", current); statsMap.put(stts[i].getName() + " Max", high);
renderRequest.setAttribute("activeRequestCountCurrent", new Long(webStats.getActiveRequestCount().getCurrent())); renderRequest.setAttribute("activeRequestCountLow", new Long(webStats.getActiveRequestCount().getLowWaterMark())); renderRequest.setAttribute("activeRequestCountHigh", new Long(webStats.getActiveRequestCount().getHighWaterMark()));
processAttrValue(snapshot, mbAttrInfo, propName.append("Current"), rs.getCurrent()); processAttrValue(snapshot, mbAttrInfo, propName.append("LowWaterMark"), rs.getLowWaterMark()); processAttrValue(snapshot, mbAttrInfo, propName.append("HighWaterMark"), rs.getHighWaterMark());