} else if(aStat instanceof TimeStatistic) { Long current = new Long(((TimeStatistic)aStat).getCount()); Long max = new Long(((TimeStatistic)aStat).getMaxTime()); Long min = new Long(((TimeStatistic)aStat).getMinTime()); Long total = new Long(((TimeStatistic)aStat).getTotalTime());
long count = tStat.getCount(); mbeanStat.add(new String[] { "Count", Long.toString(count) }); String maxTime = TimeUtils.formatDuration(tStat.getMaxTime()); mbeanStat.add(new String[] { "Max Time", maxTime }); String minTime = TimeUtils.formatDuration(tStat.getMinTime());
} else if(aStat instanceof TimeStatistic) { Long current = new Long(((TimeStatistic)aStat).getCount()); Long max = new Long(((TimeStatistic)aStat).getMaxTime()); Long min = new Long(((TimeStatistic)aStat).getMinTime()); Long total = new Long(((TimeStatistic)aStat).getTotalTime());
renderRequest.setAttribute("totalRequestCount", count); renderRequest.setAttribute("requestDurationMinTime", new Long(webStats.getRequestDuration().getMinTime())); renderRequest.setAttribute("requestDurationMaxTime", new Long(webStats.getRequestDuration().getMaxTime())); renderRequest.setAttribute("requestDurationTotalTime", totalTime);
TimeStatistic ts = (TimeStatistic) stat; processAttrValue(snapshot, mbAttrInfo, propName.append("Count"), ts.getCount()); processAttrValue(snapshot, mbAttrInfo, propName.append("MaxTime"), ts.getMaxTime()); processAttrValue(snapshot, mbAttrInfo, propName.append("MinTime"), ts.getMinTime()); processAttrValue(snapshot, mbAttrInfo, propName.append("TotalTime"), ts.getTotalTime());