From scm-return-22503-apmail-geronimo-scm-archive=geronimo.apache.org@geronimo.apache.org Wed Oct 03 20:22:32 2007 Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 70134 invoked from network); 3 Oct 2007 20:22:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Oct 2007 20:22:30 -0000 Received: (qmail 85754 invoked by uid 500); 3 Oct 2007 20:22:19 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 85717 invoked by uid 500); 3 Oct 2007 20:22:19 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 85706 invoked by uid 99); 3 Oct 2007 20:22:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2007 13:22:19 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2007 20:22:28 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 733AE1A983A; Wed, 3 Oct 2007 13:21:37 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r581714 [2/2] - in /geronimo/sandbox/monitoring: client/ client/client-ear/ client/client-ear/src/ client/client-ear/src/main/ client/client-ear/src/main/resources/ client/client-ear/src/main/resources/META-INF/ client/client-war/ client/cl... Date: Wed, 03 Oct 2007 20:21:29 -0000 To: scm@geronimo.apache.org From: akulshreshtha@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071003202137.733AE1A983A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: geronimo/sandbox/monitoring/client/client-war/src/main/java/org/apache/geronimo/plugins/monitoring/client/MonitoringPortlet.java URL: http://svn.apache.org/viewvc/geronimo/sandbox/monitoring/client/client-war/src/main/java/org/apache/geronimo/plugins/monitoring/client/MonitoringPortlet.java?rev=581714&view=auto ============================================================================== --- geronimo/sandbox/monitoring/client/client-war/src/main/java/org/apache/geronimo/plugins/monitoring/client/MonitoringPortlet.java (added) +++ geronimo/sandbox/monitoring/client/client-war/src/main/java/org/apache/geronimo/plugins/monitoring/client/MonitoringPortlet.java Wed Oct 3 13:21:26 2007 @@ -0,0 +1,171 @@ +/** + * 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. + */ +package org.apache.geronimo.plugins.monitoring.client; + +import java.io.IOException; +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.util.ArrayList; +import java.util.Vector; +import java.util.Set; + +import javax.portlet.ActionRequest; +import javax.portlet.ActionResponse; +import javax.portlet.GenericPortlet; +import javax.portlet.PortletConfig; +import javax.portlet.PortletException; +import javax.portlet.PortletRequestDispatcher; +import javax.portlet.RenderRequest; +import javax.portlet.RenderResponse; +import javax.portlet.WindowState; + +import org.apache.geronimo.plugins.monitoring.client.GraphsBuilder; +import org.apache.geronimo.plugins.monitoring.client.util.DBManager; +/** + * STATS + */ +public class MonitoringPortlet extends GenericPortlet { + + private static final String MBEAN_JSP = "/WEB-INF/view/monitoringMbean.jsp"; + + private static final String TIMEFRAME_JSP = "/WEB-INF/view/monitoringTimeframe.jsp"; + + private static final String MAXIMIZEDVIEW_JSP = "/WEB-INF/view/monitoringMaximized.jsp"; + + private static final String HELPVIEW_JSP = "/WEB-INF/view/monitoringHelp.jsp"; + + private PortletRequestDispatcher mBeanView; + + private PortletRequestDispatcher timeFrameView; + + private PortletRequestDispatcher maximizedView; + + private PortletRequestDispatcher helpView; + + public void processAction(ActionRequest actionRequest, + ActionResponse actionResponse) throws PortletException, IOException { + actionResponse.setRenderParameter("time", actionRequest.getParameter("time")); + actionResponse.setRenderParameter("mode", actionRequest.getParameter("mode")); + if (actionRequest.getParameter("mode").equals("mbean")) { + actionResponse.setRenderParameter("bean", actionRequest.getParameter("bean")); + } + } + + public void doView(RenderRequest request, RenderResponse response) + throws PortletException, IOException { + Integer timeFrame = 60; + String mode = "mbean"; + String bean = "TomcatWebConnector"; + if (request.getParameter("time") != null) + timeFrame = Integer.parseInt(request.getParameter("time")); + if (request.getParameter("mode") != null) + mode = request.getParameter("mode"); + if (request.getParameter("bean") != null) + bean = request.getParameter("bean"); + response.setProperty("time", timeFrame.toString()); + response.setProperty("mode", mode); + + try { + + /* //DBBBBB_-------- + Connection con = DBManager.getConnection(); + + PreparedStatement pStmt = con.prepareStatement("CREATE TABLE mrc_servers(server_id INTEGER PRIMARY KEY, server_ip VARCHAR(15), username VARCHAR(128), password VARCHAR(1024) )"); + pStmt.executeUpdate(); + pStmt = con.prepareStatement("INSERT INTO mrc_servers VALUES(0, '127.0.0.1', 'system', 'manager')"); + pStmt.executeUpdate(); + pStmt = con.prepareStatement("INSERT INTO mrc_servers VALUES(1, '127.0.0.2', 'system', 'manager')"); + pStmt.executeUpdate(); + pStmt = con.prepareStatement("SELECT * FROM mrc_servers"); + ResultSet rs = pStmt.executeQuery(); + + while(rs.next()){ + + Integer server_id = rs.getInt("server_id"); + String server_ip = rs.getString("server_ip"); + String username = rs.getString("username"); + String password = rs.getString("password"); + + System.out.println(server_id); + System.out.println(server_ip); + System.out.println(username); + System.out.println(password); + } + //DBBBBB_--------*/ + GraphsBuilder run = new GraphsBuilder(0); + if (mode.equals("mbean")) { + Vector GraphVector = run.BuildOnMbean(14, timeFrame, bean); + Set trackedBeans = run.GetTrackedBeansPretty(); + request.setAttribute("GraphVector", GraphVector); + request.setAttribute("trackedBeans", trackedBeans); + if (WindowState.MINIMIZED.equals(request.getWindowState())) { + return; + } else + mBeanView.include(request, response); + } + if (mode.equals("timeframe")) { + Vector GraphVector = run.BuildAllOnTimeFrame(14, timeFrame); + Set trackedBeans = run.GetTrackedBeansPretty(); + request.setAttribute("GraphVector", GraphVector); + request.setAttribute("trackedBeans", trackedBeans); + if (WindowState.MINIMIZED.equals(request.getWindowState())) { + return; + } else + timeFrameView.include(request, response); + } + } catch (Exception e) { + e.printStackTrace(); + } + + //if (WindowState.MINIMIZED.equals(request.getWindowState())) { + //return; + //} + + //if (WindowState.NORMAL.equals(request.getWindowState())) { + // normalView.include(request, response); + //} else { + // maximizedView.include(request, response); + //} + + } + + protected void doHelp(RenderRequest renderRequest, + RenderResponse renderResponse) throws PortletException, IOException { + helpView.include(renderRequest, renderResponse); + } + + public void init(PortletConfig portletConfig) throws PortletException { + super.init(portletConfig); + mBeanView = portletConfig.getPortletContext().getRequestDispatcher( + MBEAN_JSP); + timeFrameView = portletConfig.getPortletContext().getRequestDispatcher( + TIMEFRAME_JSP); + maximizedView = portletConfig.getPortletContext().getRequestDispatcher( + MAXIMIZEDVIEW_JSP); + helpView = portletConfig.getPortletContext().getRequestDispatcher( + HELPVIEW_JSP); + } + + public void destroy() { + mBeanView = null; + timeFrameView = null; + maximizedView = null; + helpView = null; + super.destroy(); + } +} Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/java/org/apache/geronimo/plugins/monitoring/client/MonitoringPortlet.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/java/org/apache/geronimo/plugins/monitoring/client/MonitoringPortlet.java ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/java/org/apache/geronimo/plugins/monitoring/client/MonitoringPortlet.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/monitoring/client/client-war/src/main/java/org/apache/geronimo/plugins/monitoring/client/StatsGraph.java URL: http://svn.apache.org/viewvc/geronimo/sandbox/monitoring/client/client-war/src/main/java/org/apache/geronimo/plugins/monitoring/client/StatsGraph.java?rev=581714&view=auto ============================================================================== --- geronimo/sandbox/monitoring/client/client-war/src/main/java/org/apache/geronimo/plugins/monitoring/client/StatsGraph.java (added) +++ geronimo/sandbox/monitoring/client/client-war/src/main/java/org/apache/geronimo/plugins/monitoring/client/StatsGraph.java Wed Oct 3 13:21:26 2007 @@ -0,0 +1,480 @@ +/** + * 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. + */ +package org.apache.geronimo.plugins.monitoring.client; + +import java.text.Format; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.Vector; +import java.lang.Character; + +public class StatsGraph { + private String GraphName; + private String DivName; + private String PrettyName; + private String DivDefine; + private String DivImplement; + private String XAxisLabel; + private String YAxisLabel; + private int SnapshotDuration; + private int TimeFrame; + private int PointCount; + private String HexColor; + private String GraphJS; + + public StatsGraph(String graphName, String prettyName, String xAxisLabel, String yAxisLabel, Vector dataSet1, Character operation, Vector dataSet2, Vector snapshotTimes, int snapshotDuration, int timeFrame, String hexColor) + { + + DivName = graphName +"Container"; + GraphName = graphName; + PrettyName = prettyName; + XAxisLabel = xAxisLabel; + YAxisLabel = yAxisLabel; + SnapshotDuration = snapshotDuration; + TimeFrame = timeFrame; + PointCount = dataSet1.size(); + HexColor = hexColor; + + DivDefine = "#" + DivName + "\n" + + "{\n" + + "margin: 0px;\n" + + "background-color: #"+hexColor+"\n" + + "border: 1px solid #999;\n" + + "width: 750px;\n" + + "height: 260px;\n" + + "}"; + + DivImplement = "\n" + + "

\n" + + "\n"; + + GraphJS = "var " + graphName + "Data = \n" + + "[\n"; + + for (int i = 1; i < dataSet1.size(); i++) { + if (((Long)dataSet1.get(i) - (Long)dataSet1.get(i-1)) < 0) + dataSet1.set(i-1, dataSet1.get(i)); + GraphJS = GraphJS+" { index: " + (i) + ", value: Math.round(("+((Long)dataSet1.get(i)-(Long)dataSet1.get(i-1))+operation+((Long)dataSet2.get(i)-(Long)dataSet2.get(i-1))+")*10)/10 },\n"; + //System.out.println("StatsGraph Says: Data object "+i+" is "+dataSet2.get(i)); + } + + GraphJS = GraphJS+"];\n"; + + + GraphJS = GraphJS+"var " + graphName + + "Store = new dojo.collections.Store();\n"; + GraphJS = GraphJS+graphName + "Store.setData(" + graphName + "Data);\n"; + GraphJS = GraphJS+graphName + "Max = 0;\n" + + graphName + "Min = 0;\n" + + graphName + "Avg = 0;\n" + + "for (var i = 0; i<"+ graphName + "Data.length; i++)\n" + + "{\n" + + graphName + "Max = Math.max(" + graphName + "Max," + graphName+ "Data[i].value);\n" + + graphName + "Min = Math.min("+ graphName + "Min," + graphName + "Data[i].value);\n" + + graphName + "Avg = (" + graphName + "Avg + " + graphName + + "Data[i].value);\n" + "}\n" + graphName + + "Avg = Math.round(" + graphName + "Avg/" + graphName + + "Data.length*10)/10;\n" + "if (" + graphName + "Max == 0)\n" + + graphName + "Max = 1;\n"; + + // Setup the data series + GraphJS = GraphJS+"var " + graphName + + "Series = new dojo.charting.Series({\n"; + GraphJS = GraphJS+"dataSource: " + graphName + "Store,\n"; + GraphJS = GraphJS+"bindings: { x: \"index\", y: \"value\" },\n"; + GraphJS = GraphJS+"label: \"" + graphName + "\"\n"; + GraphJS = GraphJS+"});\n"; + + // Define the x-axis + GraphJS = GraphJS+"var " + graphName + "xAxis = new dojo.charting.Axis(); \n"; + + // Set the upper and lower data range valuesprettyName + GraphJS = GraphJS+graphName + "xAxis.range = { lower: " + + graphName + "Data[0].index, upper: " + graphName + + "Data[" + graphName + "Data.length-1].index };\n"; + + GraphJS = GraphJS+graphName + "xAxis.origin = \"" + graphName + + "Max\";\n"; + GraphJS = GraphJS+graphName + "xAxis.showTicks = true;\n"; + GraphJS = GraphJS+graphName + "xAxis.label = \"" + prettyName + "\";\n"; + + // Setup the x tick marks on the chart + GraphJS = GraphJS+graphName + "xAxis.labels = [ \n"; + //timeFrame = ((int) ((Long)snapshotTimes.get(0) - (Long)snapshotTimes + //.get(snapshotTimes.size() - 1)) / 60000); + Format formatter = new SimpleDateFormat("HH:mm"); + if ((timeFrame / 1440) > 7) + formatter = new SimpleDateFormat("M/d"); + else { + if ((timeFrame / 60) > 24) + formatter = new SimpleDateFormat("E a"); + else { + // if (timeFrame > 60) + // formatter = new SimpleDateFormat("HH:mm"); + // else + formatter = new SimpleDateFormat("HH:mm"); + } + } + + for (int i = 1; i < dataSet1.size(); i++) { + Date date = new Date((Long)snapshotTimes.get(i)); + //System.out.println("StatsGraph Says: Time object "+i+" is "+snapshotTimes.get(i)); + //System.out.println("StatsGraph Says: Time object "+i+" is "+formatter.format(date)); + GraphJS = GraphJS+"{ label: '" + formatter.format(date) + + "', value: " + (i) + + " }, \n"; + } + GraphJS = GraphJS+"];\n"; + // Define the y-axis + GraphJS = GraphJS+"var " + graphName + + "yAxis = new dojo.charting.Axis();\n"; + GraphJS = GraphJS+graphName + "yAxis.range = { lower: " + graphName + + "Min, upper: " + graphName + "Max+(0.1*"+graphName+"Max)};\n"; + GraphJS = GraphJS+graphName + "yAxis.showLines = true;\n"; + GraphJS = GraphJS+graphName + "yAxis.showTicks = true;\n"; + GraphJS = GraphJS+graphName + "yAxis.label = \"" + yAxisLabel + "\";\n"; + + // Setup the y tick marks on the chart + GraphJS = GraphJS+graphName + "yAxis.labels = [ \n"; + GraphJS = GraphJS+"{ label: \"min - \"+" + graphName + "Min, value: " + + graphName + "Min },\n"; + GraphJS = GraphJS+"{ label: \"avg - \"+" + graphName + "Avg, value: " + + graphName + "Avg },\n"; + GraphJS = GraphJS+"{ label: \"max - \"+" + graphName + "Max, value: " + + graphName + "Max },\n"; + GraphJS = GraphJS+"{ label: Math.round(("+ graphName + "Max+(0.1*"+graphName+"Max))), value: " + + graphName + "Max+(0.1*"+graphName+"Max) },\n"; + GraphJS = GraphJS+"]; \n"; + + // Create the actual graph with the x and y axes defined above + GraphJS = GraphJS+"var " + graphName + + "chartPlotArea = new dojo.charting.PlotArea();\n"; + GraphJS = GraphJS+"var " + graphName + + "chartPlot = new dojo.charting.Plot(" + graphName + + "xAxis, " + graphName + "yAxis);\n"; + GraphJS = GraphJS+graphName + "chartPlotArea.initializePlot(" + + graphName + "chartPlot);\n"; + // graphOutput.add(graphName+"xAxis.initializeLabels();"); + // graphOutput.add(graphName+"xAxis.renderLabels("+graphName+"chartPlotArea, + // "+graphName+"chartPlot, '200', '10', 'LABEL');"); + + // Add the time series to the graph. The plotter will be a curved + // area graph. + // Other available plotters are: + // Bar, HorizontalBar, Gantt, StackedArea, StackedCurvedArea, + // HighLow, HighLowClose, HighLowOpenClose, Bubble, + // DataBar, Line, CurvedLine, Area, CurvedArea, Scatter + GraphJS = GraphJS+graphName + "chartPlot.addSeries({ \n"; + GraphJS = GraphJS+"data: " + graphName + "Series,\n"; + GraphJS = GraphJS+"plotter: dojo.charting.Plotters.CurvedArea\n"; + GraphJS = GraphJS+"});\n"; + + // Define the plot area + + GraphJS = GraphJS+graphName + + "chartPlotArea.size = { width: 650, height: 200 };\n"; + GraphJS = GraphJS+graphName + + "chartPlotArea.padding = { top: 30, right: 20, bottom: 30, left: 80 };\n"; + + // Add the plot to the area + GraphJS = GraphJS+graphName + "chartPlotArea.plots.push(" + graphName + + "chartPlot);\n"; + // Simply use the next available color when plotting the time series + // plot + GraphJS = GraphJS+graphName + "Series.color = '#"+hexColor+"';\n"; + + // Create the actual chart "canvas" + GraphJS = GraphJS+"var " + graphName + + "chart = new dojo.charting.Chart(null, \"" + graphName + + "\", \"This is the example chart description\");\n"; + + // Add the plot area at an offset of 10 pixels from the top left + GraphJS = GraphJS+graphName + "chart.addPlotArea({ x: " + + dataSet1.size() + ", y: " + dataSet1.size() + + ", plotArea: " + graphName + "chartPlotArea });\n"; + + // Setup the chart to be added to the DOM on load + GraphJS = GraphJS+"dojo.addOnLoad(function()\n{\n"+graphName + "chart.node = dojo.byId(\"" + DivName +"\");"; + + GraphJS = GraphJS+graphName + "chart.render();\n});\n"; + + } + + public StatsGraph(String graphName, String prettyName, String xAxisLabel, String yAxisLabel, Vector dataSet1, Character operation, Vector dataSet2, Vector snapshotTimes, int snapshotDuration, int timeFrame, int pointCount) + { + + } + + public StatsGraph(String graphName, String prettyName, String xAxisLabel, String yAxisLabel, Vector dataSet1, Character operation, Vector dataSet2, Vector snapshotTimes, int snapshotDuration, int timeFrame) + { + + } + + public StatsGraph(String graphName, String prettyName, String xAxisLabel, String yAxisLabel, Vector dataSet1, Vector snapshotTimes, int snapshotDuration, int timeFrame, String hexColor) + { + DivName = graphName +"Container"; + GraphName = graphName; + PrettyName = prettyName; + XAxisLabel = xAxisLabel; + YAxisLabel = yAxisLabel; + SnapshotDuration = snapshotDuration; + TimeFrame = timeFrame; + PointCount = dataSet1.size(); + HexColor = hexColor; + + DivDefine = "#" + DivName + "\n" + + "{\n" + + "margin: 0px;\n" + + "background-color: #"+hexColor+"\n" + + "border: 1px solid #999;\n" + + "width: 750px;\n" + + "height: 260px;\n" + + "}"; + + DivImplement = "\n" + + "

\n" + + "\n"; + + GraphJS = "var " + graphName + "Data = \n" + + "[\n"; + + for (int i = 1; i < dataSet1.size(); i++) { + GraphJS = GraphJS+" { index: " + (i) + ", value: Math.round(("+(Long)dataSet1.get(i)+")*10)/10 },\n"; + //System.out.println("StatsGraph Says: Data object "+i+" is "+dataSet2.get(i)); + } + + GraphJS = GraphJS+"];\n"; + + + GraphJS = GraphJS+"var " + graphName + + "Store = new dojo.collections.Store();\n"; + GraphJS = GraphJS+graphName + "Store.setData(" + graphName + "Data);\n"; + GraphJS = GraphJS+graphName + "Max = 0;\n" + + graphName + "Min = 0;\n" + + graphName + "Avg = 0;\n" + + "for (var i = 0; i<"+ graphName + "Data.length; i++)\n" + + "{\n" + + graphName + "Max = Math.max(" + graphName + "Max," + graphName+ "Data[i].value);\n" + + graphName + "Min = Math.min("+ graphName + "Min," + graphName + "Data[i].value);\n" + + graphName + "Avg = (" + graphName + "Avg + " + graphName + + "Data[i].value);\n" + "}\n" + graphName + + "Avg = Math.round(" + graphName + "Avg/" + graphName + + "Data.length*10)/10;\n" + "if (" + graphName + "Max == 0)\n" + + graphName + "Max = 1;\n"; + + // Setup the data series + GraphJS = GraphJS+"var " + graphName + + "Series = new dojo.charting.Series({\n"; + GraphJS = GraphJS+"dataSource: " + graphName + "Store,\n"; + GraphJS = GraphJS+"bindings: { x: \"index\", y: \"value\" },\n"; + GraphJS = GraphJS+"label: \"" + graphName + "\"\n"; + GraphJS = GraphJS+"});\n"; + + // Define the x-axis + GraphJS = GraphJS+"var " + graphName + "xAxis = new dojo.charting.Axis(); \n"; + + // Set the upper and lower data range valuesprettyName + GraphJS = GraphJS+graphName + "xAxis.range = { lower: " + + graphName + "Data[0].index, upper: " + graphName + + "Data[" + graphName + "Data.length-1].index };\n"; + + GraphJS = GraphJS+graphName + "xAxis.origin = \"" + graphName + + "Max\";\n"; + GraphJS = GraphJS+graphName + "xAxis.showTicks = true;\n"; + GraphJS = GraphJS+graphName + "xAxis.label = \"" + prettyName + "\";\n"; + + // Setup the x tick marks on the chart + GraphJS = GraphJS+graphName + "xAxis.labels = [ \n"; + //timeFrame = ((int) ((Long)snapshotTimes.get(0) - (Long)snapshotTimes + //.get(snapshotTimes.size() - 1)) / 60000); + Format formatter = new SimpleDateFormat("HH:mm"); + if ((timeFrame / 1440) > 7) + formatter = new SimpleDateFormat("M/d"); + else { + if ((timeFrame / 60) > 24) + formatter = new SimpleDateFormat("E a"); + else { + // if (timeFrame > 60) + // formatter = new SimpleDateFormat("HH:mm"); + // else + formatter = new SimpleDateFormat("HH:mm"); + } + } + + for (int i = 1; i < dataSet1.size(); i++) { + Date date = new Date((Long)snapshotTimes.get(i)); + //System.out.println("StatsGraph Says: Time object "+i+" is "+snapshotTimes.get(i)); + //System.out.println("StatsGraph Says: Time object "+i+" is "+formatter.format(date)); + GraphJS = GraphJS+"{ label: '" + formatter.format(date) + + "', value: " + (i) + + " }, \n"; + } + GraphJS = GraphJS+"];\n"; + // Define the y-axis + GraphJS = GraphJS+"var " + graphName + + "yAxis = new dojo.charting.Axis();\n"; + GraphJS = GraphJS+graphName + "yAxis.range = { lower: " + graphName + + "Min, upper: " + graphName + "Max+(0.1*"+graphName+"Max)};\n"; + GraphJS = GraphJS+graphName + "yAxis.showLines = true;\n"; + GraphJS = GraphJS+graphName + "yAxis.showTicks = true;\n"; + GraphJS = GraphJS+graphName + "yAxis.label = \"" + yAxisLabel + "\";\n"; + + // Setup the y tick marks on the chart + GraphJS = GraphJS+graphName + "yAxis.labels = [ \n"; + GraphJS = GraphJS+"{ label: \"min - \"+" + graphName + "Min, value: " + + graphName + "Min },\n"; + GraphJS = GraphJS+"{ label: \"avg - \"+" + graphName + "Avg, value: " + + graphName + "Avg },\n"; + GraphJS = GraphJS+"{ label: \"max - \"+" + graphName + "Max, value: " + + graphName + "Max },\n"; + GraphJS = GraphJS+"{ label: Math.round(("+ graphName + "Max+(0.1*"+graphName+"Max))), value: " + + graphName + "Max+(0.1*"+graphName+"Max) },\n"; + GraphJS = GraphJS+"]; \n"; + + // Create the actual graph with the x and y axes defined above + GraphJS = GraphJS+"var " + graphName + + "chartPlotArea = new dojo.charting.PlotArea();\n"; + GraphJS = GraphJS+"var " + graphName + + "chartPlot = new dojo.charting.Plot(" + graphName + + "xAxis, " + graphName + "yAxis);\n"; + GraphJS = GraphJS+graphName + "chartPlotArea.initializePlot(" + + graphName + "chartPlot);\n"; + // graphOutput.add(graphName+"xAxis.initializeLabels();"); + // graphOutput.add(graphName+"xAxis.renderLabels("+graphName+"chartPlotArea, + // "+graphName+"chartPlot, '200', '10', 'LABEL');"); + + // Add the time series to the graph. The plotter will be a curved + // area graph. + // Other available plotters are: + // Bar, HorizontalBar, Gantt, StackedArea, StackedCurvedArea, + // HighLow, HighLowClose, HighLowOpenClose, Bubble, + // DataBar, Line, CurvedLine, Area, CurvedArea, Scatter + GraphJS = GraphJS+graphName + "chartPlot.addSeries({ \n"; + GraphJS = GraphJS+"data: " + graphName + "Series,\n"; + GraphJS = GraphJS+"plotter: dojo.charting.Plotters.CurvedArea\n"; + GraphJS = GraphJS+"});\n"; + + // Define the plot area + + GraphJS = GraphJS+graphName + + "chartPlotArea.size = { width: 650, height: 200 };\n"; + GraphJS = GraphJS+graphName + + "chartPlotArea.padding = { top: 30, right: 20, bottom: 30, left: 80 };\n"; + + // Add the plot to the area + GraphJS = GraphJS+graphName + "chartPlotArea.plots.push(" + graphName + + "chartPlot);\n"; + // Simply use the next available color when plotting the time series + // plot + GraphJS = GraphJS+graphName + "Series.color = '#"+hexColor+"';\n"; + + // Create the actual chart "canvas" + GraphJS = GraphJS+"var " + graphName + + "chart = new dojo.charting.Chart(null, \"" + graphName + + "\", \"This is the example chart description\");\n"; + + // Add the plot area at an offset of 10 pixels from the top left + GraphJS = GraphJS+graphName + "chart.addPlotArea({ x: " + + dataSet1.size() + ", y: " + dataSet1.size() + + ", plotArea: " + graphName + "chartPlotArea });\n"; + + // Setup the chart to be added to the DOM on load + GraphJS = GraphJS+"dojo.addOnLoad(function()\n{\n"+graphName + "chart.node = dojo.byId(\"" + DivName +"\");"; + + GraphJS = GraphJS+graphName + "chart.render();\n});\n"; + } + + public StatsGraph(String graphName, String prettyName, String xAxisLabel, String yAxisLabel, Vector dataSet1, Vector snapshotTimes, int snapshotDuration, int timeFrame, int pointCount) + { + + } + + public StatsGraph(String graphName, String prettyName, String xAxisLabel, String yAxisLabel, Vector dataSet1, Vector snapshotTimes, int snapshotDuration, int timeFrame) + { + + } + + public StatsGraph() + { + + } + + public void redraw() + { + + } + + public String getJS() + { + return GraphJS; + } + + public String getDiv() + { + return DivDefine; + } + + public String getDivImplement() + { + return DivImplement; + } + + public String getDivName() + { + return DivName; + } + + public String getXAxis() + { + return XAxisLabel; + } + + public String getYAxis() + { + return YAxisLabel; + } + + public String getName() + { + return GraphName; + } + + public String getPrettyName() + { + return PrettyName; + } + + public int getSnapshotDuration() + { + return SnapshotDuration; + } + + public int getTimeFrame() + { + return TimeFrame; + } + + public int getPointCount() + { + return PointCount; + } + + public String getColor() + { + return HexColor; + } +} Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/java/org/apache/geronimo/plugins/monitoring/client/StatsGraph.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/java/org/apache/geronimo/plugins/monitoring/client/StatsGraph.java ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/java/org/apache/geronimo/plugins/monitoring/client/StatsGraph.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/monitoring/client/client-war/src/main/java/org/apache/geronimo/plugins/monitoring/client/util/DBManager.java URL: http://svn.apache.org/viewvc/geronimo/sandbox/monitoring/client/client-war/src/main/java/org/apache/geronimo/plugins/monitoring/client/util/DBManager.java?rev=581714&view=auto ============================================================================== --- geronimo/sandbox/monitoring/client/client-war/src/main/java/org/apache/geronimo/plugins/monitoring/client/util/DBManager.java (added) +++ geronimo/sandbox/monitoring/client/client-war/src/main/java/org/apache/geronimo/plugins/monitoring/client/util/DBManager.java Wed Oct 3 13:21:26 2007 @@ -0,0 +1,45 @@ +/** + * 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. + */ +package org.apache.geronimo.plugins.monitoring.client.util; + +import java.sql.Connection; +import java.sql.SQLException; + +import javax.naming.Context; +import javax.naming.InitialContext; +import javax.naming.NamingException; +import javax.sql.DataSource; + + +public class DBManager { + + public static Connection getConnection(){ + Connection con = null; + + try { + Context context = new InitialContext(); + DataSource ds = (DataSource)context.lookup("java:comp/env/jdbc/MonitoringClientDS"); + con = ds.getConnection(); + } catch (NamingException e) { + e.printStackTrace(); + } catch (SQLException e) { + e.printStackTrace(); + } + return con; + } + +} Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/java/org/apache/geronimo/plugins/monitoring/client/util/DBManager.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/java/org/apache/geronimo/plugins/monitoring/client/util/DBManager.java ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/java/org/apache/geronimo/plugins/monitoring/client/util/DBManager.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/geronimo-web.xml URL: http://svn.apache.org/viewvc/geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/geronimo-web.xml?rev=581714&view=auto ============================================================================== --- geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/geronimo-web.xml (added) +++ geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/geronimo-web.xml Wed Oct 3 13:21:26 2007 @@ -0,0 +1,48 @@ + + + + + + + org.apache.geronimo.plugins.monitoring + client + 1.0-SNAPSHOT + war + + + + + org.apache.geronimo.plugins + pluto-support + + + + + /MonitoringPortlet + + + jdbc/MonitoringClientDS + MonitoringClientPool + + + Monitoring + /MonitoringPortlet + [MonitoringPortlet] + + + Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/geronimo-web.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/geronimo-web.xml ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/geronimo-web.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/portlet.xml URL: http://svn.apache.org/viewvc/geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/portlet.xml?rev=581714&view=auto ============================================================================== --- geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/portlet.xml (added) +++ geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/portlet.xml Wed Oct 3 13:21:26 2007 @@ -0,0 +1,41 @@ + + + + + + + Monitoring Portlet + MonitoringPortlet + Monitoring Portlet + org.apache.geronimo.plugins.monitoring.client.MonitoringPortlet + + text/html + VIEW + HELP + + + Monitoring + + + + Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/portlet.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/portlet.xml ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/portlet.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringHelp.jsp URL: http://svn.apache.org/viewvc/geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringHelp.jsp?rev=581714&view=auto ============================================================================== --- geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringHelp.jsp (added) +++ geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringHelp.jsp Wed Oct 3 13:21:26 2007 @@ -0,0 +1,22 @@ +<%-- + 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. +--%> + +

This is the help for the MRC Statistics.

+ +

The stats page needs help documentation

+ +

To return to the main Welcome panel select the "view" link from the header of this portlet.

Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringHelp.jsp ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringHelp.jsp ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringHelp.jsp ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringMaximized.jsp URL: http://svn.apache.org/viewvc/geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringMaximized.jsp?rev=581714&view=auto ============================================================================== --- geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringMaximized.jsp (added) +++ geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringMaximized.jsp Wed Oct 3 13:21:26 2007 @@ -0,0 +1,17 @@ +<%-- + 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. +--%> +<%@ include file="monitoringMbean.jsp" %> Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringMaximized.jsp ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringMaximized.jsp ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringMaximized.jsp ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringMbean.jsp URL: http://svn.apache.org/viewvc/geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringMbean.jsp?rev=581714&view=auto ============================================================================== --- geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringMbean.jsp (added) +++ geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringMbean.jsp Wed Oct 3 13:21:26 2007 @@ -0,0 +1,86 @@ +<%-- + 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.plugins.monitoring.client.StatsGraph" %> +<%@ page import="java.util.Vector" %> +<%@ page import="java.util.Set" %> +<%@ page import="org.apache.geronimo.console.util.PortletManager" %> + + +<% +Vector GraphVector = (Vector) request.getAttribute("GraphVector"); +Set trackedBeans = (Set) request.getAttribute("trackedBeans"); +Integer time = (Integer) request.getAttribute("time"); +%> + + + + + + + + + + +
+

+ + + By MBean | ">By + Timeframe + + +

+ | +<% for (String Bean : trackedBeans) +{ +%> + "><%=Bean%> + | +<% +} +%> + +<% for (StatsGraph graph : GraphVector) +{ +%> +

+<%=graph.getDivImplement()%> +

+<% +} +%> + +
+ Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringMbean.jsp ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringMbean.jsp ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringMbean.jsp ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringTimeframe.jsp URL: http://svn.apache.org/viewvc/geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringTimeframe.jsp?rev=581714&view=auto ============================================================================== --- geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringTimeframe.jsp (added) +++ geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringTimeframe.jsp Wed Oct 3 13:21:26 2007 @@ -0,0 +1,73 @@ +<%-- + 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.plugins.monitoring.client.StatsGraph" %> +<%@ page import="java.util.Vector" %> +<%@ page import="org.apache.geronimo.console.util.PortletManager" %> + + +<% +Vector GraphVector = (Vector) request.getAttribute("GraphVector"); +Integer time = (Integer) request.getAttribute("time"); +%> + + + + + + + + + + +
+

+ + + ">By + MBean | By Timeframe + + +

+ ">Hour + | ">Day + | ">Week + | ">30 + day + <% for (StatsGraph graph : GraphVector) + out.println("

"+graph.getDivImplement()+"

"); + %> + +
+ Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringTimeframe.jsp ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringTimeframe.jsp ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/view/monitoringTimeframe.jsp ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/web.xml URL: http://svn.apache.org/viewvc/geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/web.xml?rev=581714&view=auto ============================================================================== --- geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/web.xml (added) +++ geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/web.xml Wed Oct 3 13:21:26 2007 @@ -0,0 +1,44 @@ + + + + + + + + MonitoringPortlet + org.apache.pluto.core.PortletServlet + + portlet-name + MonitoringPortlet + + 1 + + + MonitoringPortlet + /PlutoInvoker/MonitoringPortlet + + + + jdbc/MonitoringClientDS + javax.sql.DataSource + Container + Shareable + + + Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/web.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/web.xml ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/monitoring/client/client-war/src/main/webapp/WEB-INF/web.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: geronimo/sandbox/monitoring/client/pom.xml URL: http://svn.apache.org/viewvc/geronimo/sandbox/monitoring/client/pom.xml?rev=581714&view=auto ============================================================================== --- geronimo/sandbox/monitoring/client/pom.xml (added) +++ geronimo/sandbox/monitoring/client/pom.xml Wed Oct 3 13:21:26 2007 @@ -0,0 +1,275 @@ + + + + + + 4.0.0 + + + org.apache.geronimo.samples + samples + 2.0-SNAPSHOT + ../pom.xml + + + org.apache.geronimo.plugins.monitoring + 1.0-SNAPSHOT + client + Geronimo Stats :: Client + pom + + + Geronimo Stats + + + + + 1.0-SNAPSHOT + 1.0-SNAPSHOT + 2.1-SNAPSHOT + 1.1 + 1.2.0-SNAPSHOT + 3.0.1 + + + + + + + + + javax.portlet + portlet-api + 1.0 + + + + org.apache.geronimo.modules + geronimo-kernel + ${geronimoVersion} + + + + org.apache.geronimo.modules + geronimo-management + ${geronimoVersion} + + + + org.apache.geronimo.specs + geronimo-servlet_2.5_spec + ${geronimoServletSpecVersion} + + + + org.apache.geronimo.modules + geronimo-j2ee + ${geronimoVersion} + + + + org.apache.xbean + xbean-naming + ${xbeanVersion} + + + + org.apache.geronimo.configs + geronimo-gbean-deployer + ${geronimoVersion} + car + + + + org.apache.geronimo.configs + dojo-jetty6 + ${geronimoVersion} + car + + + + org.apache.geronimo.configs + dojo-tomcat + ${geronimoVersion} + car + + + + org.apache.geronimo.plugins + console-core + ${consoleVersion} + + + org.apache.geronimo.modules + geronimo-connector + + + + javax.portlet + portlet-api + + + + org.apache.geronimo.modules + geronimo-deploy-jsr88 + + + + org.apache.geronimo.specs + geronimo-servlet_2.5_spec + + + + + + + + + + client-war + client-ear + + + + + + + org.apache.geronimo.plugins + car-maven-plugin + ${geronimoVersion} + true + + + + org.apache.maven.plugins + maven-enforcer-plugin + 1.0-alpha-2 + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.0-alpha-4 + + + + + + org.apache.maven.plugins + maven-war-plugin + 2.0.2 + + ${pom.basedir}/src/main/webapp + true + + + false + + + + + + ${project.build.outputDirectory} + + META-INF/LICENSE* + META-INF/NOTICE* + META-INF/DISCLAIMER* + + + + + + + + org.apache.pluto + maven-pluto-plugin + ${plutoVersion} + + + + + + + + + maven-site-plugin + false + + ${project.basedir}/docs + + + + org.apache.geronimo.genesis.plugins + tools-maven-plugin + + true + + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.5 + 1.5 + + + + + org.apache.maven.plugins + maven-release-plugin + + https://svn.apache.org/repos/asf/geronimo/sandbox/portals/tags + + + + + + + + apache-snapshots + Apache Snapshots Repository + http://people.apache.org/repo/m2-snapshot-repository + default + + true + daily + ignore + + + false + + + + + Propchange: geronimo/sandbox/monitoring/client/pom.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/sandbox/monitoring/client/pom.xml ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/sandbox/monitoring/client/pom.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: geronimo/sandbox/monitoring/mrc-server/mrc-server-ear-1.0-SNAPSHOT.ear URL: http://svn.apache.org/viewvc/geronimo/sandbox/monitoring/mrc-server/mrc-server-ear-1.0-SNAPSHOT.ear?rev=581714&view=auto ============================================================================== Binary file - no diff available. Propchange: geronimo/sandbox/monitoring/mrc-server/mrc-server-ear-1.0-SNAPSHOT.ear ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream