statsMap.put(stts[i].getName() + " Min", low); } else if(aStat instanceof CountStatistic) { Long current = new Long(((CountStatistic)aStat).getCount()); statsMap.put(stts[i].getName(), current); } else if(aStat instanceof TimeStatistic) {
long count = cStat.getCount(); mbeanStat.add(new String[] { "Count", Long.toString(count) }); } else if (statistic instanceof TimeStatistic) {
statsMap.put(stts[i].getName() + " Min", low); } else if(aStat instanceof CountStatistic) { Long current = new Long(((CountStatistic)aStat).getCount()); statsMap.put(stts[i].getName(), current); } else if(aStat instanceof TimeStatistic) {
public void renderView(RenderRequest request, RenderResponse response, MultiPageModel model) throws PortletException, IOException { AbstractName name = new AbstractName(URI.create(request.getParameter(ABSTRACT_NAME_PARAMETER))); StatisticsProvider pool = (StatisticsProvider) PortletManager.getManagedBean(request, name); ThreadPoolStats stats = (ThreadPoolStats) pool.getStats(); String[] consumers = stats.getThreadConsumers(); ClientStats[] result = new ClientStats[consumers.length]; for (int i = 0; i < result.length; i++) { result[i] = new ClientStats(consumers[i], (int)stats.getCountForConsumer(consumers[i]).getCount()); } request.setAttribute("poolName", name.getName().get(NameFactory.J2EE_NAME)); request.setAttribute("stats", stats); request.setAttribute("consumers", result); }
renderRequest.setAttribute("response1xx", Long.valueOf(webStats.getResponses1xx().getCount())); renderRequest.setAttribute("response2xx", Long.valueOf(webStats.getResponses2xx().getCount())); renderRequest.setAttribute("response3xx", Long.valueOf(webStats.getResponses3xx().getCount())); renderRequest.setAttribute("response4xx", Long.valueOf(webStats.getResponses4xx().getCount())); renderRequest.setAttribute("response5xx", Long.valueOf(webStats.getResponses5xx().getCount())); renderRequest.setAttribute("elapsedTime", TimeUtils.formatDuration(webStats.getStatsOnMs().getCount()));
processAttrValue(snapshot, mbAttrInfo, propName.append("Count"), cs.getCount());