<page xmlns="http://bali.us.oracle.com/cabo/baja"
      xmlns:baja="http://bali.us.oracle.com/cabo/baja" 
      xmlns:marlin="http://bali.us.oracle.com/cabo/marlin"
      xmlns:html="http://www.w3.org/TR/REC-html40"
      xmlns:chart="http://emchart.us.oracle.com/ui"
      xmlns:oem="http://xmlns.oracle.com/oem/ui/beans"
      xmlns:data="http://bali.us.oracle.com/cabo/marlin">

  <baja:content xmlns="http://bali.us.oracle.com/cabo/marlin">
    <body onLoad="loadIt();"><contents>
      <script><contents>
        function loadIt()
        {
          eval(document.forms[0].focusJavaScript.value);
        }
      </contents></script>
      <dataScope>
  
        <contents>
          <html:title>
           <text data:text="title@hostDetails"/>
          </html:title>
          <html:noScript>
              "This page uses JavaScript to perform the list of values lookup. Your browser either does not support JavaScript, or it is disabled.  Please enable JavaScript, or upgrade your browser."
          </html:noScript>
  	
          <pageLayout>
            <mediumAdvertisement>
              <include baja:node="../oemBanner" />
            </mediumAdvertisement>
            <globalButtons>
              <include baja:node="../globalButtonBar" />
            </globalButtons>
            <tabs>
              <include baja:node="../globalTabs" />
            </tabs>
  
     <location>
        <include baja:node="/breadCrumbs"/>
     </location>
  
            <pageHeader>
              <include baja:node="../globalHeader" />
            </pageHeader>
  
            <copyright>
             <include baja:node="../copyright"/>
            </copyright>
  
            <contents>
            <switcher data:childName="node@hostDetails">
            <case name="okNode">
             <stackLayout>
              <contents>
            
             <html:meta http-equiv="Refresh" content="-1" 
                        data:rendered="showRefreshTag@hostDetails"
                        data:content="refreshRate@hostDetails"/>
  
              <link name="TOP"/>
              <spacer  height="10"/>
  
              <header data:text="header@hostDetails">
                <contents>
  
                <!--  >>>>>>>>>> DROPDOWN REFRESH OPTION  >>>>>>>>>>>>>> -->
                   <tableLayout width="100%">
                   <contents>
                    <rowLayout>
                     <contents>
                      <cellFormat>
                       <contents>
                        <rowLayout hAlign="right">
                         <contents>
                          <styledText styleClass="OraTipText"
                                      vAlign="middle"
                                      data:text="LATEST_FROM_TARGET@sdkBundle" />
                          <spacer  width="4"/>
                          <styledText styleClass="OraTipLabel" data:text="timestamp@hostDetails" />
                            <image data:source="refreshIcon@hostDetails"
                                   data:destination="hostDiskIOOverviewDest@folderInfo"
                                   data:shortDesc="REFRESH_BUTTON@mntrResourceBundle"/>
                         </contents>
                        </rowLayout>
                       </contents>
                      </cellFormat>
                     </contents>
                    </rowLayout>
                   </contents>
                  </tableLayout>
  
                 <subTabBar orientation="top"
                            data:selectedIndex="selectedTab@folderInfo">
                  <contents>
                   <link data:text="HOME@mntrResourceBundle"
                         data:destination="targetDest@folderInfo"/>
                   <link data:text="PERFORMANCE@hostResourceBundle"  
                         data:destination="perfOverviewDest@folderInfo"/>
                   <oem:license>
                     <contents>
                   <link data:text="ADMINISTRATION@hostResourceBundle"
                              data:destination="hostAdminDest@folderInfo"/> 
                     </contents>
                   </oem:license>                    
                   <link data:text="HOST_TARGET_LIST@hostResourceBundle"  
                            data:destination="targetListDest@folderInfo"/>
                   <link data:text="CONFIGURATION@TrackResourceBundle"
                         data:destination="viewSnapshot@hostSnapshot"/>
                  </contents>
                 </subTabBar>
  
                <spacer height="1"/>
  
                <form name="hostSummary">
                 <contents>
                   <formValue name="focusJavaScript" data:value="focusJavaScript@hostDetails"/>
                 </contents>
                 <contents>
                    <tableLayout width="100%" rendered="true">
                      <contents>
                        <rowLayout>
                          <contents>
                            <cellFormat>
                              <contents>
                                <rowLayout hAlign="left">
                                  <contents>
  
                                    <styledText data:text="VIEW@mntrResourceBundle"
                                            styleClass="OraPromptText"/>
                    
                                    <spacer  width="8"/>
  
                                    <choice name="sumryChoice" columns="4" data:shortDesc="VIEW@mntrResourceBundle"
                                            onChange="submitForm('hostSummary', true, {event:'refToOpt'})"
                                            marlin:selectedIndex="overviewOption@hostDetails">
                                      <contents marlin:childData="refOption@sumryChoices">
                                        <option marlin:text="name" marlin:selected="selected" 
                                                marlin:value="value"/>
                                      </contents>
                                    </choice>
  
                                    <spacer  width="5"/>                                  
                                    <formValue name="event" value="refToOpt" />
  
                                  </contents>
                                 </rowLayout>
                                </contents>
                               </cellFormat>
  
  
                            <cellFormat>
                              <contents>
                                <rowLayout hAlign="right">
                                  <contents>
  
                                    <spacer  width="5"/>
  
                                    <styledText data:text="VIEW_DATA@mntrResourceBundle"
                                            styleClass="OraPromptText"/>
  
                                    <spacer  width="5"/>
  
                                    <choice name="refChoice" columns="5" data:shortDesc="VIEW_DATA@mntrResourceBundle"
  
                                           onChange="submitForm(hostSummary, false, {event:'refToOptRefresh'})"
                                            marlin:selectedIndex="refreshSelection@hostDetails">
                                      <contents marlin:childData="refOption@refreshChoices">
                                        <option marlin:text="name" marlin:selected="selected" 
                                                marlin:value="value"/>
                                      </contents>
                                    </choice>
                                    <spacer width="10"/>
                                  </contents>
                                </rowLayout>
                              </contents>
                            </cellFormat>
  
                          </contents>
                        </rowLayout>
                      </contents>
                    </tableLayout> 
                 </contents>
                </form>
  
  	      <stackLayout> 
                 <contents>
                  <switcher name="false" data:childName="error@hostDetails">
                   <case name="true">
                    <messageBox data:message="errMsg@hostDetails"
                                messageType="error"
                                longDescURL="unimpl"
                                data:text="ERR_OCCUR@mntrResourceBundle">
                    </messageBox>
                   </case>
                  </switcher>
                  <spacer height="10"/>
                  <rowLayout vAlign="top" width="100%">
                   <contents>
                    <header data:text="DISK_IO_USAGE@hostResourceBundle" vAlign="top">
                     <contents>
                      <stackLayout>
                       <contents>
                         <chart:emChart data:title="TOTAL_IO@hostResourceBundle"
                                        titleVisible="false"
                                        chartType="timeSeriesChart"
                                        data:width="hostSummaryTotIOwidth@hostDetails"
                                        data:height="hostSummaryTotIOheight@hostDetails"
                                        data:timeGranularity="hostSummaryTotIOtimeGranularity@hostDetails"
                                        orientation="vertical"
                                        seriesColorsAutomatic="true"
                                        data:warningThreshold="hostSummaryTotIOwarningThreshold@hostDetails"
                                        data:criticalThreshold="hostSummaryTotIOcriticalThreshold@hostDetails"
                                        legendPosition="south"
                                        axisMin="0"
                                        data:shortDesc="TOTAL_IO@hostResourceBundle">
                           <contents>
                             <chart:boundChartDataSource data:chartDataSource="hostSummaryTotIOchartDataSource@hostDetails"/>
                             <chart:imageMap data:imageMapDataSource="hostSummaryTotIOimapDataSource@hostDetails"
                                             overwriteLabels="true"/>
                             <chart:chartColumn isKey="true"
                                                displayLabel=""
                                                sourceIndex="0"/>
                             <chart:chartColumn isTimeColumn="true"
                                                displayLabel=""
                                                sourceIndex="1"/>
                             <chart:chartColumn displayLabel=""
                                                sourceIndex="2"/>
                           </contents>
                         </chart:emChart>
                        <spacer height="5"/>
  
                        <rowLayout hAlign="left">
                         <contents>
                          <tableLayout cellSpacing="8" 
                                       data:rendered="realtime@hostDetails">
                           <contents>
                            <rowLayout>
                             <contents>
                              <cellFormat hAlign="right">
                               <contents>
                                <styledText data:text="TOTAL_IO@hostResourceBundle"
                                            wrappingDisabled="true"
                                            styleClass="OraPromptText"/>
                               </contents>
                              </cellFormat>
                              <cellFormat hAlign="left"> 
                               <contents>
                                <styledText text=""
                                            data:text="totIO@hostDetails"
                                            data:destination="totIOUrl@hostDetails"
                                            styleClass="OraDataText"/>
                               </contents>
                              </cellFormat>
                             </contents>
                            </rowLayout>
                           </contents>
                          </tableLayout>
                         </contents>
                        </rowLayout>
                       </contents>
                      </stackLayout>
                     </contents>
                    </header>
  
                    <header data:text="AVG_IO@hostResourceBundle" vAlign="top">
                     <contents>
                      <stackLayout>
                       <contents>
                         <chart:emChart data:title="AVG_IO@hostResourceBundle"
                                        titleVisible="false"
                                        chartType="timeSeriesChart"
                                        data:width="hostSummaryLongestServwidth@hostDetails"
                                        data:height="hostSummaryLongestServheight@hostDetails"
                                        data:timeGranularity="hostSummaryLongestServtimeGranularity@hostDetails"
                                        orientation="vertical"
                                        seriesColorsAutomatic="true"
                                        data:warningThreshold="hostSummaryLongestServwarningThreshold@hostDetails"
                                        data:criticalThreshold="hostSummaryLongestServcriticalThreshold@hostDetails"
                                        legendPosition="south"
                                        axisMin="0"
                                        data:shortDesc="AVG_IO@hostResourceBundle">
                           <contents>
                             <chart:boundChartDataSource data:chartDataSource="hostSummaryLongestServchartDataSource@hostDetails"/>
                             <chart:imageMap data:imageMapDataSource="hostSummaryLongestServimapDataSource@hostDetails"
                                             overwriteLabels="true"/>
                             <chart:chartColumn isKey="true"
                                                displayLabel=""
                                                sourceIndex="0"/>
                             <chart:chartColumn isTimeColumn="true"
                                                displayLabel=""
                                                sourceIndex="1"/>
                             <chart:chartColumn displayLabel=""
                                                sourceIndex="2"/>
                           </contents>
                         </chart:emChart>
                        <spacer height="5"/>
  
                        <rowLayout hAlign="left">
                         <contents>
                          <tableLayout cellSpacing="8" 
                                       data:rendered="realtime@hostDetails">
                           <contents>
                            <rowLayout>
                             <contents>
                              <cellFormat hAlign="right">
                               <contents>
                                <styledText data:text="LONGEST_SER_TIME@hostResourceBundle"
                                            wrappingDisabled="true"
                                            styleClass="OraPromptText"/>
                               </contents>
                              </cellFormat>
                              <cellFormat hAlign="left"> 
                               <contents>
                                <styledText text=""
                                            data:text="longestServ@hostDetails"
                                            data:destination="longestServUrl@hostDetails"
                                            styleClass="OraDataText"/>
                               </contents>
                              </cellFormat>
                             </contents>
                            </rowLayout>
                           </contents>
                          </tableLayout>
                         </contents>
                        </rowLayout>
                       </contents>
                      </stackLayout>
                     </contents>
                    </header>
  
                   </contents>
                  </rowLayout>
  
                  <header data:text="TOP_DISK_DEVICES@hostResourceBundle"
                          data:rendered="realtime@hostDetails">
                   <contents>
                    <tableLayout>
                      <contents>
                       <rowLayout>
                       <contents>
                        <spacer width="8"/>
                        <styledText data:text="viewAll@hostDiskInfo"
                                   data:destination="diskActivityDest@hostDiskInfo"/>
                       </contents>
                      </rowLayout>
  
                      <spacer height="8"/>
  
                      <rowLayout hAlign="left" width="100%">
                       <contents>
                        <spacer width="5"/>
                     <table data:tableData="row@hostDiskInfo"
                            data:columnHeaderData="column@ddColHeaderData"
                            width="100%"
                            data:columnFormats="colformat@columnFormatData"
                            data:summary="DISK_DEVICES@hostResourceBundle">
  
                       <tableFormat tableBanding="rowBanding"/>
  
                        <columnHeaderStamp>
                          <boundText select="text"/>
                        </columnHeaderStamp>
  
                        <contents>
                          <image data:source="severity"/>
                          <styledText data:text="diskName"/>
                          <styledText data:text="DiskActivitybusy" data:destination="DiskActivitybusyDest"/>
                          <styledText data:text="DiskActivityavque" data:destination="DiskActivityavqueDest"/>
                          <styledText data:text="diskActivReadsPerSec" data:destination="diskActivReadsPerSecDest"/>
                          <styledText data:text="diskActivWritesPerSec" data:destination="diskActivWritesPerSecDest"/>
                          <styledText data:text="diskActivReadsBlks" data:destination="diskActivReadsBlksDest"/>
                          <styledText data:text="diskActivWritesBlks" data:destination="diskActivWritesBlksDest"/>
                          <styledText data:text="DiskActivityavwait" data:destination="DiskActivityavwaitDest"/>
                          <styledText data:text="DiskActivityavserv" data:destination="DiskActivityavservDest"/>
                        </contents>
  
                       </table>
                      </contents>
                     </rowLayout>
                    </contents>
                   </tableLayout>
                   <spacer height="5"/>
                   <tip>
                   <contents>
                   <text data:text="NOINFOTIP@hostConfigResourceBundle"/>
                   </contents>
                   </tip>
                   <spacer height="15"/>
                  </contents>
                 </header>
                </contents>
               </stackLayout>
             <spacer  height="10"/>
              </contents>
            </header>
                   </contents>
             </stackLayout>
            </case>
            <case name="errNode">
             <messageBox data:message="errMsg@hostDetails"
                         messageType="error"
                         longDescURL="unimpl"
                         data:text="ERR_OCCUR@mntrResourceBundle">
             </messageBox>
            </case>
           </switcher>

                <subTabBar orientation="bottom"
                               data:selectedIndex="selectedTab@folderInfo">
                  <contents>
                   <link data:text="HOME@mntrResourceBundle"
                         data:destination="targetDest@folderInfo"/>
                   <link data:text="PERFORMANCE@hostResourceBundle"  
                         data:destination="perfOverviewDest@folderInfo"/>                   
                   <oem:license>
                    <contents>
                   <link data:text="ADMINISTRATION@hostResourceBundle"
                         data:destination="hostAdminDest@folderInfo"/>  
                    </contents>
                   </oem:license>
		   <link data:text="HOST_TARGET_LIST@hostResourceBundle"  
                            data:destination="targetListDest@folderInfo"/>
                   <link data:text="CONFIGURATION@TrackResourceBundle"
                         data:destination="viewSnapshot@hostSnapshot"/>
                  </contents>
                 </subTabBar>
  
           </contents>
          </pageLayout>
        </contents>
  
        <provider>
          <data name="mntrResourceBundle">
            <bundle class="oracle.sysman.resources.MntrResourceBundle"/>
          </data>
          <data name="commonResourceBundle">
            <bundle class="oracle.sysman.resources.CommonResourceBundle"/>
          </data>
  
          <data name="hostResourceBundle">
            <bundle class="oracle.sysman.eml.host.HostResourceBundle"/>
          </data>
          <data name="hostConfigResourceBundle">
            <bundle class="oracle.sysman.eml.mntr.host.mgmt.HostConfigResourceBundle"/>
          </data>
          <data name="sdkBundle">
              <bundle class="oracle.sysman.emSDK.eml.SDKUIMsg"/>
          </data>
  
          <data name="hostDetails">
              <method class="oracle.sysman.eml.mntr.host.HostSummaryDataObject"
                method="getHostSummary"/>
          </data>
  
  
          <data name="refreshChoices">
           <inline>
            <refOption data:name="VIEWDATA_REALTIME_MANUAL@sdkBundle" value="manual"/>
            <refOption data:name="VIEWDATA_REALTIME_30SEC@sdkBundle" value="auto"/>
            <refOption data:name="LAST_DAY@sdkBundle" value="byDay"/>
            <refOption data:name="LAST_WEEK@sdkBundle" value="byWeek"/>
            <refOption data:name="LAST_MONTH@sdkBundle" value="byMonth"/>
           </inline>
          </data>
  
          <data name="ddColHeaderData">
            <inline>
              <column data:text="STATUS@hostResourceBundle"/>
              <column data:text="DEVICE_NAME@hostResourceBundle"/>
              <column data:text="PCT_BUSY@hostResourceBundle"/>
              <column data:text="AVG_NUM_REQUESTS@hostResourceBundle"/>
              <column data:text="NUM_READS@hostResourceBundle"/>
              <column data:text="NUM_WRITES@hostResourceBundle"/>
              <column data:text="NUM_BLOCKS_READ@hostResourceBundle"/>
              <column data:text="NUM_BLOCKS_WRITTEN@hostResourceBundle"/>
              <column data:text="AVG_IDLE_TIME@hostResourceBundle"/>
              <column data:text="AVG_SERVICE_TIME@hostResourceBundle"/>
            </inline>
          </data>
  
          <data name="columnFormatData">
            <inline>
              <colformat columnDataFormat="iconButtonFormat" width="5%"/> 
              <colformat/>
              <colformat columnDataFormat="numberFormat"/> 
              <colformat columnDataFormat="numberFormat"/> 
              <colformat columnDataFormat="numberFormat"/> 
              <colformat columnDataFormat="numberFormat"/> 
              <colformat columnDataFormat="numberFormat"/> 
              <colformat columnDataFormat="numberFormat"/> 
              <colformat columnDataFormat="numberFormat"/> 
              <colformat columnDataFormat="numberFormat"/> 
              </inline>
          </data>
  
  
          <data name="sumryChoices">
           <inline>
            <refOption data:name="PERFORMANCE_OVERVIEW@mntrResourceBundle" value="sumryOverviewOpt"/>
            <refOption data:name="CPU_DETAIL@hostResourceBundle" value="cpuOverviewOpt"/>
            <refOption data:name="MEMORY_DETAIL@hostResourceBundle" value="memoryOverviewOpt"/>
            <refOption data:name="DISK_IO_DETAIL@hostResourceBundle" value="diskIOOverviewOpt"/>
  	  <refOption data:name="MONITORED_PROGRAM@mntrResourceBundle" value="programResourceOpt"/>
           </inline>
          </data>
  
          <data name="TrackResourceBundle">
            <bundle class="oracle.sysman.eml.ecm.resources.TrackResourceBundle"/>
          </data>
  
          <data name="hostSnapshot">
            <method class="oracle.sysman.eml.ecm.track.DBOHomeData"
                    method="createHostECMLinks"/>
          </data>
  
          <data name="folderInfo">
            <method class="oracle.sysman.eml.mntr.host.HostOverviewDataObject"
                    method="getFoldersInfo"/>
          </data>
  
          <data name="hostInfo">
            <method class="oracle.sysman.eml.mntr.host.HostCurDetailDataObject"
                    method="getHostTopProcInfo"/>
          </data>
  
          <data name="hostDiskInfo">
            <method class="oracle.sysman.eml.mntr.host.HostCurDetailDataObject"
                    method="getHostDiskDetailInfo"/>
          </data>
  
          <data name="styleClasses">
           <inline selected="OraHeaderSubSub" unselected="OraPromptText"/>
          </data>
   
          <data name="consoleContextPath">
             <method class="oracle.sysman.eml.util.ConsoleContextPath" 
                 method="getConsoleContextPath"/>
          </data>
  
        </provider>
  
      </dataScope>
    </contents></body>
  </baja:content>

  <handlers>
    <!-- Used for dropdown refresh option -->
    <event name="refToOpt">
      <method class="oracle.sysman.eml.mntr.host.HostSummaryDataObject"
              method="doSummaryRefresh"/>
    </event>

    <event name="refToOptRefresh">
      <method class="oracle.sysman.eml.mntr.host.HostSummaryDataObject"
              method="doSummaryRefresh"/>
    </event>

    <event name="showBy">
      <method class="oracle.sysman.eml.mntr.host.HostSummaryDataObject"
              method="handleTopProcsOrder"/>
    </event>

    <event name="*">
      <method class="oracle.sysman.eml.mntr.host.HostSummaryDataObject"
              method="doLoad"/>
    </event>

  </handlers>

</page>
