<%@ page import="java.util.ArrayList"%> <%@ page import="java.util.Iterator"%> <%@ page import="oracle.sysman.eml.webapp.data.WebappKeyMetricChartData"%> <%@ page import="oracle.sysman.eml.webapp.data.WebappComponentPerfData"%> <%@ page import="oracle.sysman.eml.webapp.data.WebappComponentAvailData"%> <%@ page import="oracle.sysman.eml.mntr.util.GenDataObjectList"%> <%-- --%> <% // include a component performance section for each target type ArrayList perfDataList = (ArrayList) request.getAttribute("componentPerfDataList"); ArrayList availDataList = (ArrayList) request.getAttribute("componentAvailDataList"); if(perfDataList != null && perfDataList.size() > 0 && availDataList != null && availDataList.size() > 0) { Iterator availDataIter = availDataList.iterator(); for(Iterator perfDataIter = perfDataList.iterator(); perfDataIter.hasNext(); ) { WebappComponentPerfData componentPerfData = (WebappComponentPerfData) perfDataIter.next(); WebappComponentAvailData componentAvailData = null; if(availDataIter.hasNext()) componentAvailData = (WebappComponentAvailData) availDataIter.next(); String type = componentPerfData.getComponentType(); // bug: 2761632: JSP: CLASSCAST EXCEPTION IF ID IS SET TO RUNTIME VALUE; fixed in UIX 2.1.14 // String compHeaderId = (String)componentPerfData.getCompHeaderId(); String currentAvailDataKey = "componentAvailData"+type; request.setAttribute(currentAvailDataKey, componentAvailData); String currentAvailDataBinding = currentAvailDataKey+"@servletRequest"; String currentDataKey = "componentPerfData"+type; request.setAttribute(currentDataKey, componentPerfData); String currentDataBinding = currentDataKey+"@servletRequest"; %> <%-- --%> <% java.util.ArrayList metricChartData = componentPerfData.getMetricChartDataList(); if (metricChartData != null && metricChartData.size() > 0) { %> <% for (java.util.Iterator metIter=metricChartData.iterator(); metIter.hasNext(); ) { WebappKeyMetricChartData chartData = (WebappKeyMetricChartData) metIter.next(); %> <% } %> <%-- --%> <% } %> <% int n=0; if(componentAvailData != null) { for(Iterator targIter=componentAvailData.getTargetList().iterator(); targIter.hasNext(); n++) { GenDataObjectList rowData = (GenDataObjectList) targIter.next(); String rowKey = currentDataKey+n; request.setAttribute(rowKey, rowData); String rowDataBinding = rowKey+"@servletRequest"; %> <%-- TIME LINE --%> <% } } %> <%-- MARKER ROW --%> <%-- START TIME AND END TIME ROW --%> <%-- TARGET NOT MONITORED MSG --%> <%-- TARGET AVAIL UNDERTERMINED MSG --%> <%-- TARGET STATES NOT APPEAR MSG --%> <%-- --%> <% } // end for perfDataIter } // end if perfData != null %> <%-- --%> <%-- --%>