statsMap.put(stts[i].getName(), current); } 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()); statsMap.put(stts[i].getName() + " CurrentTime", current); statsMap.put(stts[i].getName() + " MaxTime", max);
statsMap.put(stts[i].getName(), current); } 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()); statsMap.put(stts[i].getName() + " CurrentTime", current); statsMap.put(stts[i].getName() + " MaxTime", max);
} else if (statistic instanceof TimeStatistic) { TimeStatistic tStat = (TimeStatistic) statistic; 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()); mbeanStat.add(new String[] { "Min Time", minTime }); long totalTime = tStat.getTotalTime(); mbeanStat.add(new String[] { "Total Time", Long.toString(totalTime) }); } else if (statistic instanceof BoundedRangeStatistic) {
renderRequest.setAttribute("activeRequestCountHigh", new Long(webStats.getActiveRequestCount().getHighWaterMark())); Long count = new Long(webStats.getRequestDuration().getCount()); Long totalTime = new Long(webStats.getRequestDuration().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);
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());