<%-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%> <%@ page import="org.apache.geronimo.monitoring.console.StatsGraph" %> <%@ page import="org.apache.geronimo.monitoring.console.GraphsBuilder" %> <%@ page import="java.util.Set" %> <%@ page import="java.util.Iterator" %> <%@ page import="java.util.HashMap" %> <%@ page import="java.util.TreeMap" %> <%@ page import="java.util.ArrayList" %> <%@ page import="java.lang.String" %> <%@ page import="java.sql.Connection" %> <%@ page import="java.sql.DatabaseMetaData" %> <%@ page import="java.sql.PreparedStatement" %> <%@ page import="java.sql.ResultSet" %> <%@ page import="java.sql.SQLException" %> <%@ page import="org.apache.geronimo.monitoring.console.util.*" %> <%@ page import="org.apache.geronimo.monitoring.console.MRCConnector" %> <% String graph_id = (String) request.getAttribute("graph_id"); String message = (String) request.getAttribute("message"); DBManager DBase = new DBManager(); Connection con = DBase.getConnection(); if (message == null) message = new String(""); PreparedStatement pStmt = con.prepareStatement("SELECT * FROM graphs WHERE graph_id="+graph_id); ResultSet rs = pStmt.executeQuery(); if (rs.next()) { String server_id = rs.getString("server_id"); String name = rs.getString("name"); Integer enabled = rs.getInt("enabled"); String description = rs.getString("description"); Integer timeframe = rs.getInt("timeframe"); String mbean = rs.getString("mbean"); String data1operation = rs.getString("data1operation"); String dataname1 = rs.getString("dataname1"); String operation = rs.getString("operation"); String data2operation = rs.getString("data2operation"); String dataname2 = rs.getString("dataname2"); String xlabel = rs.getString("xlabel"); String ylabel = rs.getString("ylabel"); String warninglevel1 = rs.getString("warninglevel1"); String warninglevel2 = rs.getString("warninglevel2"); String color = rs.getString("color"); String added = rs.getString("added").substring(0,16); String modified = rs.getString("modified").substring(0,16); String last_seen = rs.getString("last_seen").substring(0,16); boolean archive = rs.getInt("archive") == 1 ? true : false; rs.close(); pStmt = con.prepareStatement("SELECT * FROM servers WHERE enabled=1"); rs = pStmt.executeQuery(); MRCConnector mrc = null; Long snapshotDuration = null; ArrayList serverIds = new ArrayList(); ArrayList serverNames = new ArrayList(); %> <% if (!message.equals("")) { %>
<%=message %>
<%} %>

Editing: <%=name%>

">
Added:   <%=added%>
Last Modified:   <%=modified%>
Last Seen:   <%=last_seen%>
Server:  
Name:  
Description:  
X Axis label:  
Y Axis label:  
Timeframe:   minutes
Mbean:  
Data series:   name
Math operation:   <%} else {%>style="display: none;"<%}%> width="6" size="8" name="othermath" onKeyUp='noAlphaMath(this); updateFormula();' onKeyPress='noAlphaMath(this); updateFormula();' value="<%=operation %>"/>
Data series 2:  
<% if(archive) { %> Show Archive <% } else { %> Show Archive <% } %>
Graphing:
 
 

     
Navigation
 
 


Actions
 
 
<% con.close(); } else {%>
<< Back

Graph does not exist

     
Navigation
 
 


Actions
 
 
<% }%>