Edit D:\app\Administrator\product\11.2.0\dbhome_1\j2ee\OC4J_EM\applications\em\em\webapp\webappCompPerf.jspf
<%@ 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"%> <%-- <uix:form name="componentPerfForm" method="GET" destinationBinding="componentPerfFormDestination@servletRequest" > --%> <uix:dataScope currentDataBinding="servletRequest" > <uix:bundle name="webappMsg" class="oracle.sysman.eml.webapp.WebappMsg" /> <uix:bundle name="commonResourceBundle" class="oracle.sysman.resources.CommonResourceBundle" /> <% // 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"; %> <uix:dataScope currentDataBinding="<%=currentDataBinding%>" > <uix:rowLayout> <uix:stackLayout> <%-- <uix:hideShowHeader formSubmitted="true" disclosedBinding="compHeaderDisclosed" id="compHeaderId" partialRenderMode="true" textBinding="compPerfHeaderText" > --%> <uix:header textBinding="compPerfHeaderText" > <uix:stackLayout> <uix:rowLayout> <% java.util.ArrayList metricChartData = componentPerfData.getMetricChartDataList(); if (metricChartData != null && metricChartData.size() > 0) { %> <uix:cellFormat> <uix:stackLayout> <% for (java.util.Iterator metIter=metricChartData.iterator(); metIter.hasNext(); ) { WebappKeyMetricChartData chartData = (WebappKeyMetricChartData) metIter.next(); %> <oem:chart title="<%=chartData.getChartTitle(request)%>" chartType="timeSeriesChart" width="500" height="125" legendVisible="false" timeGranularity="HOUR" orientation="vertical" seriesColorsAutomatic="true" xAxisMinBinding="startDate@webappTimeContextData@servletRequest" xAxisMaxBinding="endDate@webappTimeContextData@servletRequest" > <uix:contents> <oem:boundChartDataSource chartDataSource="<%=chartData.getChartDataSource()%>" /> <oem:chartColumn isKey="true" displayLabel="Host" sourceIndex="0" /> <oem:chartColumn isTimeColumn="true" displayLabel="Time" sourceIndex="1" /> <oem:chartColumn displayLabel="<%=chartData.getMetric().getDisplayLabel(request, false)%>" sourceIndex="2" /> </uix:contents> </oem:chart> <% } %> </uix:stackLayout> </uix:cellFormat> <%-- <uix:cellFormat vAlign="top" width="60%" > <uix:header textBinding="CURRENT_PERFORMANCE@webappMsg" > <uix:stackLayout> <uix:include nodeBinding="targetPerfTable"/> </uix:stackLayout> </uix:header> </uix:cellFormat> --%> <uix:cellFormat vAlign="top" width="60%" > <uix:header textBinding="LEGEND@webappMsg"> <uix:stackLayout> <uix:include nodeBinding="targetPerfLegend"/> </uix:stackLayout> </uix:header> </uix:cellFormat> <% } %> </uix:rowLayout> <uix:rowLayout> <uix:header textBinding="AVAILABILITY@webappMsg" > <uix:dataScope currentDataBinding="<%=currentAvailDataBinding%>" > <uix:stackLayout> <uix:contents> <% 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 --%> <uix:labeledFieldLayout labelWidth="0%" fieldWidth="100%" width="100%"> <uix:contents childDataBinding="<%=rowDataBinding%>"> <uix:stackLayout> <uix:contents> <uix:spacer height="1"/> <uix:styledText textBinding="displayName@" destinationBinding="destination@"/> </uix:contents> </uix:stackLayout> <uix:stackLayout> <uix:contents> <uix:spacer height="1"/> <uix:rowLayout> <uix:contents> <uix:rowLayout> <uix:contents childDataBinding="imageRow@"> <uix:image sourceBinding="imageSource@" widthBinding="imageWidth@" heightBinding="imageHeight@"/> </uix:contents> </uix:rowLayout> <uix:rowLayout> <uix:contents> <uix:spacer width="10"/> <uix:styledText textBinding="availPct@" styleClass="OraDataText"/> </uix:contents> </uix:rowLayout> <uix:rowLayout> <uix:contents> <uix:spacer width="5"/> <uix:styledText textBinding="targetName@" destinationBinding="targetDest@"/> </uix:contents> </uix:rowLayout> </uix:contents> </uix:rowLayout> </uix:contents> </uix:stackLayout> </uix:contents> </uix:labeledFieldLayout> <uix:spacer height="1"/> <% } } %> <%-- MARKER ROW --%> <uix:labeledFieldLayout labelWidth="0%" fieldWidth="100%" width="100%"> <uix:contents childDataBinding="markRow"> <uix:spacer height="1"/> <uix:rowLayout> <uix:contents> <uix:rowLayout> <uix:contents childDataBinding="imageRow@"> <uix:image sourceBinding="imageSource@" widthBinding="imageWidth@" heightBinding="imageHeight@"/> </uix:contents> </uix:rowLayout> <uix:spacer width="10"/> </uix:contents> </uix:rowLayout> </uix:contents> </uix:labeledFieldLayout> <%-- START TIME AND END TIME ROW --%> <uix:labeledFieldLayout labelWidth="0%" fieldWidth="100%" width="100%"> <uix:contents> <uix:stackLayout> <uix:contents> </uix:contents> </uix:stackLayout> <uix:stackLayout> <uix:contents> <uix:tableLayout width="480"> <uix:contents> <uix:rowLayout> <uix:contents> <uix:cellFormat hAlign="left"> <uix:contents> <uix:styledText styleClass="OraInlineInfoText" textBinding="startTimeStamp"/> </uix:contents> </uix:cellFormat> <uix:cellFormat hAlign="right"> <uix:contents> <uix:styledText styleClass="OraInlineInfoText" textBinding="endTimeStamp"/> </uix:contents> </uix:cellFormat> </uix:contents> </uix:rowLayout> </uix:contents> </uix:tableLayout> </uix:contents> </uix:stackLayout> </uix:contents> </uix:labeledFieldLayout> <uix:spacer height="10"/> <%-- TARGET NOT MONITORED MSG --%> <uix:labeledFieldLayout labelWidth="0%" fieldWidth="100%" width="100%" renderedBinding="showTgtNotMonMsg"> <uix:contents> <uix:stackLayout> <uix:contents> </uix:contents> </uix:stackLayout> <uix:stackLayout> <uix:contents> <uix:tableLayout width="480"> <uix:contents> <uix:rowLayout> <uix:contents> <uix:cellFormat hAlign="left"> <uix:contents> <uix:styledText styleClass="OraInlineInfoText" textBinding="tgtNotMonMsg"/> </uix:contents> </uix:cellFormat> </uix:contents> </uix:rowLayout> </uix:contents> </uix:tableLayout> </uix:contents> </uix:stackLayout> </uix:contents> </uix:labeledFieldLayout> <%-- TARGET AVAIL UNDERTERMINED MSG --%> <uix:labeledFieldLayout labelWidth="0%" fieldWidth="100%" width="100%" renderedBinding="showTgtAvailUndetMsg"> <uix:contents> <uix:stackLayout> <uix:contents> </uix:contents> </uix:stackLayout> <uix:stackLayout> <uix:contents> <uix:tableLayout width="480"> <uix:contents> <uix:rowLayout> <uix:contents> <uix:cellFormat hAlign="left"> <uix:contents> <uix:styledText styleClass="OraInlineInfoText" textBinding="tgtAvailUndetMsg"/> </uix:contents> </uix:cellFormat> </uix:contents> </uix:rowLayout> </uix:contents> </uix:tableLayout> </uix:contents> </uix:stackLayout> </uix:contents> </uix:labeledFieldLayout> <%-- TARGET STATES NOT APPEAR MSG --%> <uix:labeledFieldLayout labelWidth="0%" fieldWidth="100%" width="100%" renderedBinding="showTgtStatesNotAppearMsg"> <uix:contents> <uix:stackLayout> <uix:contents> </uix:contents> </uix:stackLayout> <uix:stackLayout> <uix:contents> <uix:tableLayout width="480"> <uix:contents> <uix:rowLayout> <uix:contents> <uix:cellFormat hAlign="left"> <uix:contents> <uix:styledText styleClass="OraInlineInfoText" textBinding="tgtStatesNotAppearMsg"/> </uix:contents> </uix:cellFormat> </uix:contents> </uix:rowLayout> </uix:contents> </uix:tableLayout> </uix:contents> </uix:stackLayout> </uix:contents> </uix:labeledFieldLayout> </uix:contents> </uix:stackLayout> </uix:dataScope> </uix:header> </uix:rowLayout> </uix:stackLayout> <%-- </uix:hideShowHeader> --%> </uix:header> </uix:stackLayout> </uix:rowLayout> </uix:dataScope> <% } // end for perfDataIter } // end if perfData != null %> <%-- </uix:stackLayout> </uix:header> --%> </uix:dataScope> <%-- </uix:form> --%>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de