qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agazzar...@apache.org
Subject svn commit: r741031 [1/3] - in /qpid/trunk/qpid/java/management/client: ./ console/ console/css/ console/definitions/ console/fragments/ console/images/
Date Thu, 05 Feb 2009 07:21:18 GMT
Author: agazzarini
Date: Thu Feb  5 07:21:17 2009
New Revision: 741031

URL: http://svn.apache.org/viewvc?rev=741031&view=rev
Log:
QPID-1581 : QMan (Web) admin console

Added:
    qpid/trunk/qpid/java/management/client/console/
    qpid/trunk/qpid/java/management/client/console/brokers_management.jsp
    qpid/trunk/qpid/java/management/client/console/console.jsp
    qpid/trunk/qpid/java/management/client/console/css/
    qpid/trunk/qpid/java/management/client/console/definitions/
    qpid/trunk/qpid/java/management/client/console/error_page.jsp
    qpid/trunk/qpid/java/management/client/console/fragments/
    qpid/trunk/qpid/java/management/client/console/fragments/header.jsp
    qpid/trunk/qpid/java/management/client/console/fragments/menu.jsp
    qpid/trunk/qpid/java/management/client/console/images/
    qpid/trunk/qpid/java/management/client/console/images/asf-logo.png   (with props)
    qpid/trunk/qpid/java/management/client/console/images/menu.gif   (with props)
    qpid/trunk/qpid/java/management/client/console/images/menuleft.gif   (with props)
    qpid/trunk/qpid/java/management/client/console/images/menuright.gif   (with props)
    qpid/trunk/qpid/java/management/client/console/images/qpid-logo.png   (with props)
    qpid/trunk/qpid/java/management/client/console/images/style.css
    qpid/trunk/qpid/java/management/client/console/jmx_perspective.jsp
    qpid/trunk/qpid/java/management/client/console/logging_configuration.jsp
    qpid/trunk/qpid/java/management/client/console/resources_management.jsp
    qpid/trunk/qpid/java/management/client/console/tbd.jsp
    qpid/trunk/qpid/java/management/client/console/wsdl-viewer.xsl
    qpid/trunk/qpid/java/management/client/console/wsdm_operations_perspective.jsp
    qpid/trunk/qpid/java/management/client/console/wsdm_properties_perspective.jsp
    qpid/trunk/qpid/java/management/client/console/wsdm_rmd_perspective.jsp
    qpid/trunk/qpid/java/management/client/console/wsdm_wsdl_perspective.jsp
Modified:
    qpid/trunk/qpid/java/management/client/web.xml

Added: qpid/trunk/qpid/java/management/client/console/brokers_management.jsp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/management/client/console/brokers_management.jsp?rev=741031&view=auto
==============================================================================
--- qpid/trunk/qpid/java/management/client/console/brokers_management.jsp (added)
+++ qpid/trunk/qpid/java/management/client/console/brokers_management.jsp Thu Feb  5 07:21:17 2009
@@ -0,0 +1,188 @@
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
+<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
+<%@page import="org.apache.qpid.management.web.action.BrokerModel"%>
+<%@page import="java.util.Set"%>
+<%@page import="javax.management.ObjectName"%>
+<%@page import="org.apache.qpid.management.Names"%>
+<%@page import="java.util.List"%>
+<%@page import="java.util.*"%>
+<%@page import="java.net.URI"%>
+<%@page import="javax.xml.namespace.QName"%>
+<%@page import="org.w3c.dom.Element"%>
+<html>
+	<head>
+		<link rel="stylesheet" href="<%=request.getContextPath()%>/images/style.css" type="text/css" />
+		<title>QMan Administration Console</title>
+	</head>
+	<body>
+		<div id="page" align="center">
+			<jsp:include page="/fragments/header.jsp">
+				<jsp:param name="title" value="Brokers Management"/>
+			</jsp:include>
+				
+			<div id="content" align="center">
+				<jsp:include page="/fragments/menu.jsp"/>
+				
+			<div id="contenttext">
+			<div class="panel" align="justify">
+				<span class="bodytext">
+                	<table width="100%">
+                        <tr>    
+                        	<td valign="top">
+								<fieldset>
+                                	<legend>Connected Brokers</legend>
+                                    <table width="100%" cellspacing="1">
+	                                    <tr>
+	                                    	<th nowrap="nowrap" align="center">Host</th>
+	                                    	<th nowrap="nowrap" align="center" >Port</th>
+	                                    	<th nowrap="nowrap" align="center">Virtual Host</th>
+	                                    	<th nowrap="nowrap" align="center">Username</th>
+	                                    	<th nowrap="nowrap" align="center">Initial Pool Capacity</th>
+	                                    	<th nowrap="nowrap" align="center">Max Pool Capacity</th>
+	                                    	<th nowrap="nowrap" align="center">Max Wait Timeout</th>
+	                                    </tr>	
+	                                        <c:forEach var="broker" items="${model}" varStatus="rowCounter">	
+	                                        	<c:choose>
+          											<c:when test="${rowCounter.count % 2 == 0}">
+            											<c:set var="bgcolor" scope="page" value="EAEAEA"/>
+          											</c:when>
+								          			<c:otherwise>
+								            			<c:set var="bgcolor" scope="page" value="FFFFFF"/>
+								          			</c:otherwise>
+	                                    		</c:choose>
+	                                    	<tr>
+	                                        	<td nowrap style="font-size: xx-small; font-weight: bold;" bgcolor="${bgcolor}"><c:out value="${broker.host}"/></td>
+	                                        	<td nowrap style="font-size: xx-small;  font-weight: bold;" bgcolor="${bgcolor}"><c:out value="${broker.port}"/></td>
+	                                        	<td style="font-size: xx-small;  font-weight: bold;" bgcolor="${bgcolor}"><c:out value="${broker.virtualHost}"/></td>
+	                                        	<td style="font-size: xx-small;  font-weight: bold;" bgcolor="${bgcolor}"><c:out value="${broker.username}"/></td>
+	                                        	<td style="font-size: xx-small;  font-weight: bold;" bgcolor="${bgcolor}"><c:out value="${broker.initialPoolCapacity}"/></td>
+	                                        	<td style="font-size: xx-small;  font-weight: bold;" bgcolor="${bgcolor}"><c:out value="${broker.maxPoolCapacity}"/></td>
+	                                        	<td style="font-size: xx-small;  font-weight: bold;" bgcolor="${bgcolor}"><c:out value="${broker.maxWaitTimeout}"/></td>
+	                                        </tr>
+                                        </c:forEach>
+                                    </table>
+                                </fieldset>                            	
+                            </td>
+                        </tr>
+                        <tr>
+                        <td>
+                        		<form name="form" action="<%=request.getContextPath()%>/brokers_management" method="post">
+	                        		<fieldset>
+                        				<legend>New Broker Connection Data</legend>
+	                        		<table>
+	                        			<tr>
+	                        				<td>
+	                        					Host : 
+	                        				</td>
+	                        				<td>
+	                        					<input type="text" name="host"/>
+	                        				</td>
+	                        				<td style="font-size: x-small;">
+	                        					The hostname where the broker is running.
+	                        				</td>
+	                        			</tr>
+	                        			<tr>
+	                        				<td>
+	                        					Port : 
+	                        				</td>
+	                        				<td>
+	                        					<input type="text" name="port"/>
+	                        				</td>
+	                        				<td style="font-size: x-small;">
+	                        					The port number where the broker is running.
+	                        				</td>
+	                        			</tr>
+	                        			<tr>
+	                        				<td>
+	                        					Virtual Host : 
+	                        				</td>
+	                        				<td>
+	                        					<input type="text" name="port"/>
+	                        				</td>
+	                        				<td style="font-size: x-small;">
+	                        					The virtual host name.
+	                        				</td>
+	                        			</tr>
+	                        			<tr>
+	                        				<td>
+	                        					Username : 
+	                        				</td>
+	                        				<td>
+	                        					<input type="text" name="username"/>
+	                        				</td>
+	                        				<td style="font-size: x-small;">
+	                        					The username used for estabilish connection with broker.
+	                        				</td>
+	                        			</tr>
+	                        			<tr>
+	                        				<td>
+	                        					Password : 
+	                        				</td>
+	                        				<td>
+	                        					<input type="text" name="password"/>
+	                        				</td>
+	                        				<td style="font-size: x-small;">
+	                        					The password  used for estabilish connection with broker.
+	                        				</td>
+	                        			</tr>
+	                        			<tr>
+	                        				<td>
+	                        					Initial Pool Capacity : 
+	                        				</td>
+	                        				<td>
+	                        					<input type="text" name="initialCapacity"/>
+	                        				</td>
+	                        				<td style="font-size: x-small;">
+	                        					The number of connections that must be immediately opened.
+	                        				</td>
+	                        			</tr>
+	                        			<tr>
+	                        				<td>
+	                        					Max Pool Capacity : 
+	                        				</td>
+	                        				<td>
+	                        					<input type="text" name="maxCapacity"/>
+	                        				</td>
+	                        				<td style="font-size: x-small;">
+	                        					The maximum number of open connections.
+	                        				</td>
+	                        			</tr>
+	                        			<tr>
+	                        				<td>
+	                        					Max Wait Timeout : 
+	                        				</td>
+	                        				<td>
+	                        					<input type="text" name="maxWaitTimeout"/>
+	                        				</td>
+	                        				<td style="font-size: x-small;">
+	                        					The maximum amount of time that a client will wait for obtaining a connection.
+	                        				</td>
+	                        			</tr>
+	                        			<tr>
+	                        				<td colspan="3" align="center">
+	                        					<input type="submit" value="Connect"/>
+	                        				</td>
+	                        			</tr>
+	                        		</table>
+	                        	</fieldset>
+	                        </td>
+	                        </form> 	
+                        </tr>
+                        <tr>
+	                        <td nowrap style="font-size: x-small; font-weight: bold; color=red;">
+	                        	<ul>	
+	                        	<c:forEach var="errorMessage" items="${errors}">	
+			                    	<li><span style="font-size: medium; font-weight: bold; color:red;">${errorMessage}</span></li>
+			                    </c:forEach>
+			                    </ul>	
+        					</td>        				
+                		</tr>
+                        
+                    </table>
+                </span>	
+            </div>
+			</div>
+			</div>
+		</div>
+	</body>
+</html>
\ No newline at end of file

Added: qpid/trunk/qpid/java/management/client/console/console.jsp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/management/client/console/console.jsp?rev=741031&view=auto
==============================================================================
--- qpid/trunk/qpid/java/management/client/console/console.jsp (added)
+++ qpid/trunk/qpid/java/management/client/console/console.jsp Thu Feb  5 07:21:17 2009
@@ -0,0 +1,101 @@
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
+<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
+<html>
+	<head>
+		<link rel="stylesheet" href="<%=request.getContextPath()%>/images/style.css" type="text/css" />
+		<title>QMan Administration Console</title>
+	</head>
+	<body>
+		<div id="page" align="center">
+			<jsp:include page="/fragments/header.jsp">
+				<jsp:param name="title" value="System Overview"/>
+			</jsp:include>
+				
+			<div id="content" align="center">
+				<jsp:include page="/fragments/menu.jsp"/>
+						
+				<div id="contenttext">
+					<div class="panel" align="justify" style="height:500px; overflow-y:auto;">
+						<span class="bodytext">
+                			<table width="100%" border="0">
+                    			<tr>
+                        			<td valign="top" nowrap align="center">
+										<fieldset>
+											<legend>QMan</legend>
+				                            <table cellspacing="2">
+				                            	<tr><td style="color: #006633; font-size: xx-small; font-weight:bold;" align="center">Version</td></tr>
+				                            	<tr><td style="font-size: xx-small;" align="center">${requestScope.model.version}</td></tr>
+				                            	<tr><td><br /></td></tr>
+				                            	<tr><td style="color: #006633; font-size: xx-small; font-weight:bold" align="center">Version Name</td></tr>
+				                            	<tr><td style="font-size: xx-small;" align="center">${requestScope.model.versionName}</td></tr>
+				                            	<tr><td><br /></td></tr>
+				                            	<tr><td style="color: #006633; font-size: xx-small; font-weight:bold" align="center">Start Date</td></tr>
+				                            	<tr>
+				                            		<td style="font-size: xx-small;" align="center">
+					                            		<fmt:formatDate 
+					                            			value="${requestScope.model.startDate}" 
+			    											pattern="MM/dd/yyyy hh:mm:ss"/>
+					                            		</td>
+				                            	</tr>
+				                            	<tr><td><br /></td></tr>
+				                            	<tr><td style="color: #006633; font-size: xx-small; font-weight:bold" align="center">Host</td></tr>
+				                            	<tr><td style="font-size: xx-small;" align="center">${requestScope.model.host}</td></tr>
+				                            	<tr><td><br /></td></tr>
+				                            	<tr><td style="color: #006633; font-size: xx-small; font-weight:bold" align="center">Port</td></tr>
+				                            	<tr><td style="font-size: xx-small;" align="center">${requestScope.model.port}</td></tr>
+				                            </table>
+									  	</fieldset>
+										<fieldset>
+											<legend>Operating System</legend>			
+					                            <table cellspacing="2">
+					                            	<tr><td style="color: #006633; font-size: xx-small; font-weight:bold;" align="center">Name</td></tr>
+					                            	<tr><td style="font-size: xx-small;" align="center">${requestScope.model.osName}</td></tr>
+					                            	<tr><td><br /></td></tr>
+					                            	<tr><td style="color: #006633; font-size: xx-small; font-weight:bold" align="center">Version</td></tr>
+					                            	<tr><td style="font-size: xx-small;" align="center">${requestScope.model.osVersion}</td></tr>
+					                            	<tr><td><br /></td></tr>
+					                            	<tr><td style="color: #006633; font-size: xx-small; font-weight:bold" align="center">Arch</td></tr>
+					                            	<tr><td style="font-size: xx-small;" align="center">${requestScope.model.archName}</td></tr>
+					                            	<tr><td><br /></td></tr>
+					                            	<tr><td style="color: #006633; font-size: xx-small; font-weight:bold" align="center">Processors</td></tr>
+					                            	<tr><td style="font-size: xx-small;" align="center">${requestScope.model.processors}</td></tr>
+					                            </table>
+										</fieldset>
+                        			</td>
+                            		<td valign="top">
+										<fieldset>
+											<legend>JVM Environment</legend>
+				                            <table cellspacing="5">
+				                            	<tr>
+				                           	  		<td valign="top">
+				                                        <h4 style="color: #006633; font-size: xx-small">Boot Classpath : 
+				                                            <p/> 
+				                                                  <c:forEach var="entry" items="${model.bootClasspath}">
+				                                                  		<c:out value="${entry}"/>;
+				                                                  	<br/>
+				                                                  </c:forEach>
+                              							</h4>	
+                                    				</td>
+				                                   <td valign="top">
+                										<h4 style="color: #006633; font-size: xx-small">
+	                            							Input Arguments :
+	                                						<p/>
+															<c:forEach var="argument" items="${model.inputArguments}">
+		                                                  		<c:out value="${argument}"/>;
+		                                                  		<br/>
+		                                                  	</c:forEach>
+														</h4>
+                                					</td>
+                                				</tr>
+                            				</table>
+					  					</fieldset>
+                            		</td>
+                        		</tr>
+                    		</table>
+                		</span>	
+            		</div>
+				</div>
+			</div>
+		</div>
+	</body>
+</html>
\ No newline at end of file

Added: qpid/trunk/qpid/java/management/client/console/error_page.jsp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/management/client/console/error_page.jsp?rev=741031&view=auto
==============================================================================
--- qpid/trunk/qpid/java/management/client/console/error_page.jsp (added)
+++ qpid/trunk/qpid/java/management/client/console/error_page.jsp Thu Feb  5 07:21:17 2009
@@ -0,0 +1,38 @@
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
+<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
+<html>
+	<head>
+		<link rel="stylesheet" href="<%=request.getContextPath()%>/images/style.css" type="text/css" />
+		<title>QMan Administration Console</title>
+	</head>
+	<body>
+		<div id="page" align="center">
+			<jsp:include page="/fragments/header.jsp">
+				<jsp:param name="title" value="Error Page"/>
+			</jsp:include>
+				
+			<div id="content" align="center">
+				<jsp:include page="/fragments/menu.jsp"/>
+						
+				<div id="contenttext">
+					<div class="panel" align="justify" style="height:500px; overflow-y:auto;">
+						<span class="bodytext">
+							<table width="100%">
+								<tr><td nowrap style="font-weight: bold;">
+									We are not able to satify your request because an error has happened.
+									<br>Message : ${errorMessage}
+								</td></tr>
+								<tr><td nowrap style="font-size: xx-small; font-weight: bold;">
+									<c:forEach var="stackTrace" items="${exception.stackTrace}">	
+										${stackTrace}
+										<br>
+									</c:forEach>
+								</td></tr>									
+							</table>	
+                		</span>	
+            		</div>
+				</div>
+			</div>
+		</div>
+	</body>
+</html>
\ No newline at end of file

Added: qpid/trunk/qpid/java/management/client/console/fragments/header.jsp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/management/client/console/fragments/header.jsp?rev=741031&view=auto
==============================================================================
--- qpid/trunk/qpid/java/management/client/console/fragments/header.jsp (added)
+++ qpid/trunk/qpid/java/management/client/console/fragments/header.jsp Thu Feb  5 07:21:17 2009
@@ -0,0 +1,15 @@
+<div id="header" align="center">
+	<div id="pagetitle">
+		<div id="asf-header" align="left">
+              	<table width="100%">
+                  	<tr>
+                      	<td align="left"><img src="images/qpid-logo.png" height="100" width="200" /></td>
+                      	<td align="right"><img src="images/asf-logo.png" height="69" width="225" /></td>
+                      </tr>
+                  </table>
+              </div>            	
+		<div id="title" class="titletext" align="right">
+              	<span class="bluetitle"><%=request.getParameter("title")%></span>
+		</div>
+	</div>
+</div>
\ No newline at end of file

Added: qpid/trunk/qpid/java/management/client/console/fragments/menu.jsp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/management/client/console/fragments/menu.jsp?rev=741031&view=auto
==============================================================================
--- qpid/trunk/qpid/java/management/client/console/fragments/menu.jsp (added)
+++ qpid/trunk/qpid/java/management/client/console/fragments/menu.jsp Thu Feb  5 07:21:17 2009
@@ -0,0 +1,10 @@
+<div id="menu" align="center">
+	<div id="linksmenu" align="left">
+		<a href="<%=request.getContextPath()%>/console"> &nbsp; &gt; System Overview</a>
+		<a href="<%=request.getContextPath()%>/brokers_management">&nbsp; &gt; Brokers Management</a>
+		<a href="<%=request.getContextPath()%>/resources_management">&nbsp; &gt; Resources Management</a>
+		<a href="<%=request.getContextPath()%>/tbd.jsp">&nbsp; &gt; Subscriptions Management</a>
+		<a href="<%=request.getContextPath()%>/tbd.jsp">&nbsp; &gt; System Health</a>
+		<a href="<%=request.getContextPath()%>/logging_configuration">&nbsp; &gt; Logging Configuration</a>
+	</div>	
+</div>

Added: qpid/trunk/qpid/java/management/client/console/images/asf-logo.png
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/management/client/console/images/asf-logo.png?rev=741031&view=auto
==============================================================================
Binary file - no diff available.

Propchange: qpid/trunk/qpid/java/management/client/console/images/asf-logo.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: qpid/trunk/qpid/java/management/client/console/images/menu.gif
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/management/client/console/images/menu.gif?rev=741031&view=auto
==============================================================================
Binary file - no diff available.

Propchange: qpid/trunk/qpid/java/management/client/console/images/menu.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: qpid/trunk/qpid/java/management/client/console/images/menuleft.gif
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/management/client/console/images/menuleft.gif?rev=741031&view=auto
==============================================================================
Binary file - no diff available.

Propchange: qpid/trunk/qpid/java/management/client/console/images/menuleft.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: qpid/trunk/qpid/java/management/client/console/images/menuright.gif
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/management/client/console/images/menuright.gif?rev=741031&view=auto
==============================================================================
Binary file - no diff available.

Propchange: qpid/trunk/qpid/java/management/client/console/images/menuright.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: qpid/trunk/qpid/java/management/client/console/images/qpid-logo.png
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/management/client/console/images/qpid-logo.png?rev=741031&view=auto
==============================================================================
Binary file - no diff available.

Propchange: qpid/trunk/qpid/java/management/client/console/images/qpid-logo.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: qpid/trunk/qpid/java/management/client/console/images/style.css
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/management/client/console/images/style.css?rev=741031&view=auto
==============================================================================
--- qpid/trunk/qpid/java/management/client/console/images/style.css (added)
+++ qpid/trunk/qpid/java/management/client/console/images/style.css Thu Feb  5 07:21:17 2009
@@ -0,0 +1,181 @@
+body 
+{
+	margin-left: 0px;
+	margin-top: 0px;
+	margin-right: 0px;
+	margin-bottom: 0px;
+}
+
+tr th	{
+		padding: 4px 8px 4px 8px;
+		background: #5E7796;
+		border: 1px solid #CCC;
+		color:#b8ce83;
+		font-size: smaller;
+}
+
+fieldset 
+{
+	font-size: xx-small;
+}
+
+#header
+{
+	width:1024px;
+}
+
+#content
+{
+	width:1024px;
+}
+
+#contenttext
+{
+	float:left; width:824px; 
+	background-color:#FFFFFF; 
+	border-left:solid 1px #999999; border-right:solid 1px #999999; 
+	border-bottom:solid 1px #999999; border-top:dotted 1px #CCCCCC; 
+	min-height:360px;
+}
+
+#asf-header 
+{
+	float:left; 
+	width:1007px; 
+	height:110px; 
+	background-color:#FFFFFF; 
+	border-right:solid 1px #999999;
+	border-left:solid 1px #999999;
+}
+
+#pagetitle
+{
+	position:relative; 
+	float:left; 
+	width:1024px; 
+	height:110px; 
+	background-color:#FFFFFF; 
+}
+
+#title
+{
+	position:absolute; 
+	right:20px; 
+	bottom:0px; 
+	width:1008px;
+}
+
+#menu
+{
+	float:left; width: 190px; margin: 0 0 0 -7px;
+}
+
+.panel{
+	padding:12px;
+	margin: 5px;
+	padding:10px;
+}
+
+.bodytext {
+	font: 0.7em Tahoma, sans-serif;
+	color: #666666;
+}
+
+.titletext {
+	font: 0.7em Tahoma, sans-serif;
+	font-size:36px;
+	font-weight:bold;
+	color: #CCCCCC;
+}
+
+.orangelogotext {
+	font: 0.7em Tahoma, sans-serif;
+	font-size:36px;
+	font-weight:bold;
+	color:#FF9900;
+}
+.orangetitle {
+	font: 0.7em Tahoma, sans-serif;
+	font-size:24px;
+	font-weight:bold;
+	color:#FF9900;
+}
+
+.bluetitle {
+	font: 0.7em Tahoma, sans-serif;
+	font-size:24px;
+	font-weight:bold;
+	color:#369;
+}
+
+#linksmenu a{
+	float:right;
+	width:183px;
+	height:20px;
+	background-color:#5E7796;
+	border-left:solid 1px #FFFFFF;
+	border-bottom:solid 1px #FFFFFF;
+	font: 0.7em Tahoma, sans-serif;
+	font-size: 11px;
+	font-weight:bold;
+	color: #FFFFFF;
+	text-decoration:none;
+	padding-top:5px;
+}
+#linksmenu a:hover
+{
+	background-color:#336;
+}
+
+
+#wsdmmenu
+{
+	float:left;
+	position: relative;
+	width: 600px;
+	font-size:75%;
+	margin: 0 0 0px 5px;
+	line-height:normal;
+}
+
+#wsdmmenu ul 
+{
+	margin:0;
+	padding:0px 0px 0 0px;
+	list-style: none;
+}
+
+#wsdmmenu li 
+{
+	display:inline;
+	margin:0;
+	padding:0;
+}
+
+#wsdmmenu a {
+	float:left;
+	background: url(menuleft.gif) no-repeat left top;
+	margin:0;
+	padding:0 0 0 4px;
+	text-decoration:none;
+}
+
+#wsdmmenu a span {
+	float:left;
+	display:block;
+	background: url(menuright.gif) no-repeat right top;
+	padding:5px 15px 4px 6px;
+	color:#888;
+}
+
+#wsdmmenu a span {float:none;}
+
+#wsdmmenu a:hover 
+{
+	background-position:0% -42px;
+}
+
+#wsdmmenu a:hover span 
+{
+	background-position:100% -42px;
+}
\ No newline at end of file

Added: qpid/trunk/qpid/java/management/client/console/jmx_perspective.jsp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/management/client/console/jmx_perspective.jsp?rev=741031&view=auto
==============================================================================
--- qpid/trunk/qpid/java/management/client/console/jmx_perspective.jsp (added)
+++ qpid/trunk/qpid/java/management/client/console/jmx_perspective.jsp Thu Feb  5 07:21:17 2009
@@ -0,0 +1,136 @@
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
+<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
+<%@page import="org.apache.qpid.management.web.action.BrokerModel"%>
+<%@page import="java.util.Set"%>
+<%@page import="javax.management.ObjectName"%>
+<%@page import="org.apache.qpid.management.Names"%>
+<%@page import="java.util.List"%>
+<html>
+	<head>
+		<link rel="stylesheet" href="<%=request.getContextPath()%>/images/style.css" type="text/css" />
+		<title>QMan Administration Console</title>
+	</head>
+	<body>
+		<div id="page" align="center">
+			<jsp:include page="/fragments/header.jsp">
+				<jsp:param name="title" value="Resource Management - JMX Perspective"/>
+			</jsp:include>
+				
+			<div id="content" align="center">
+				<jsp:include page="/fragments/menu.jsp"/>
+				
+			<div id="contenttext">
+        	<div id="wsdmmenu" align="left">
+                <ul>
+                    <li><a href="<%=request.getContextPath()%>/jmx_perspective?resourceId=${resourceId}"><span>JMX</span></a></li>
+                    <li><a href="<%=request.getContextPath()%>/wsdm_properties_perspective?resourceId=${resourceId}"><span>WS-DM</span></a></li>
+                </ul>
+            </div>
+            <br />
+			<div class="panel" align="justify">
+				<span class="bodytext">
+                	<table width="100%">
+                    	<tr>
+                        	<td valign="top" colspan="2">
+                            	<fieldset>
+                                	<legend>ObjectName</legend>
+                                    <ul>
+                                    	<c:forEach var="property" items="${nameAttributes}">
+                                            	<li>
+                                            		<c:out value="${property}"/>
+                                            	</li>
+                                          </c:forEach>      
+                                     </ul>
+                                </fieldset>
+                            </td>
+                        </tr>
+                        <tr>    
+                        	<td valign="top">
+								<fieldset>
+                                	<legend>Attributes</legend>
+                                    <table width="100%" cellspacing="1">
+                                    	<tr>
+                                        	<th>Name</th>
+                                        	<th>Type</th>
+                                        	<th>Value</th>
+                                        	<th>Access</th>
+                                        </tr>	
+	                                        <c:forEach var="attribute" items="${metadata.attributes}" varStatus="rowCounter">	
+	                                        	<c:choose>
+          											<c:when test="${rowCounter.count % 2 == 0}">
+            											<c:set var="bgcolor" scope="page" value="EAEAEA"/>
+          											</c:when>
+								          			<c:otherwise>
+								            			<c:set var="bgcolor" scope="page" value="FFFFFF"/>
+								          			</c:otherwise>
+	                                    		</c:choose>
+	                                        	<c:choose>
+          											<c:when test="${attribute.writable}">
+            											<c:set var="access" scope="page" value="RW"/>
+          											</c:when>
+								          			<c:otherwise>
+								            			<c:set var="access" scope="page" value="RO"/>
+								          			</c:otherwise>
+	                                    		</c:choose>
+	                                    	<tr>
+	                                        	<td nowrap style="font-size: xx-small; font-weight: bold;" bgcolor="${bgcolor}"><c:out value="${attribute.name}"/></td>
+	                                        	<td nowrap style="font-size: xx-small;  font-weight: bold;" bgcolor="${bgcolor}"><c:out value="${attribute.type}"/></td>
+	                                        	<td style="font-size: xx-small;  font-weight: bold;" bgcolor="${bgcolor}"><c:out value="${attributes[attribute.name]}"/></td>
+	                                        	<td nowrap style="font-size: xx-small;  font-weight: bold;" bgcolor="${bgcolor}"><c:out value="${access}"/></td>
+	                                        </tr>
+                                        </c:forEach>
+                                    </table>
+                                </fieldset>                            	
+                            </td>
+                        	<td valign="top">
+								<fieldset>
+                                	<legend>Operations</legend>   
+									<table width="100%" cellspacing="0">
+                                    	<tr>
+                                        	<th>Name</th>
+                                        	<th>Arguments</th>
+                                        </tr>
+                                        
+                                        <c:forEach var="operation" items="${metadata.operations}" varStatus="rowCounter">
+	                                    	<c:choose>
+          											<c:when test="${rowCounter.count % 2 == 0}">
+            											<c:set var="bgcolor" scope="page" value="EAEAEA"/>
+          											</c:when>
+								          			<c:otherwise>
+								            			<c:set var="bgcolor" scope="page" value="FFFFFF"/>
+								          			</c:otherwise>
+	                                    		</c:choose>
+	                                    	<tr>
+	                                        	<td nowrap style="font-size: xx-small; font-weight: bold;"  bgcolor="${bgcolor}"><c:out value="${operation.name}"/></td>
+	                                        	<td nowrap style="font-size: xx-small; font-weight: bold;"  bgcolor="${bgcolor}">
+	                                            	<ul>
+                                        				<c:forEach var="argument" items="${operation.signature}">
+	                                                		<li>
+	                                                			<c:out value="${argument.name}"/> (<c:out value="${argument.type}"/>)
+	                                                		</li>
+	                                                	</c:forEach>
+	                                                </ul>
+	                                            </td>
+	                                        </tr>
+                                        </c:forEach>
+                                </fieldset>                            	                            	
+                            </td>
+                        </tr>
+                    </table>
+                </span>	
+            </div>
+			</div>
+
+
+
+
+
+
+
+
+
+
+			</div>
+		</div>
+	</body>
+</html>
\ No newline at end of file

Added: qpid/trunk/qpid/java/management/client/console/logging_configuration.jsp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/management/client/console/logging_configuration.jsp?rev=741031&view=auto
==============================================================================
--- qpid/trunk/qpid/java/management/client/console/logging_configuration.jsp (added)
+++ qpid/trunk/qpid/java/management/client/console/logging_configuration.jsp Thu Feb  5 07:21:17 2009
@@ -0,0 +1,220 @@
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
+<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
+<html>
+	<head>
+		<link rel="stylesheet" href="<%=request.getContextPath()%>/images/style.css" type="text/css" />
+		<title>QMan Administration Console</title>
+	</head>
+	<body>
+		<div id="page" align="center">
+			<jsp:include page="/fragments/header.jsp">
+				<jsp:param name="title" value="Logging Configuration"/>
+			</jsp:include>
+				
+			<div id="content" align="center">
+				<jsp:include page="/fragments/menu.jsp"/>
+						
+				<div id="contenttext">
+					<div class="panel" align="justify" style="height:500px; overflow-y:auto;">
+						<span class="bodytext">
+	<form method="post" name="form" action="<%=request.getContextPath() %>/logging_configuration">
+							<table>
+								<tr>
+									<td>
+									<fieldset>
+									<legend>WSDL & RDM Debugger</legend>
+										<table>
+											<tr>
+												<td>
+													<c:choose>
+	          											<c:when test="${wsdlDebugEnabled}">
+	            											<c:set var="checked" scope="page" value="checked"/>
+	          											</c:when>
+									          			<c:otherwise>
+									            			<c:set var="checked" scope="page" value=""/>
+									          			</c:otherwise>
+		                                    		</c:choose>
+													<input type="checkbox" ${checked} name="wsdlDebugEnabled" />
+												</td>
+												<td nowrap style="font-size: x-small;">
+													When this flag is checked all WSDL and RMD messages are written on log file (or console depending on your configuration.)
+												 </td>
+											</tr>
+										</table>
+									</fieldset>
+									</td>
+								</tr>
+
+								<tr>
+									<td>
+									<fieldset>
+												<legend>SOAP Messages Debugger</legend>
+										<table>
+											
+											<tr>
+												<td>
+													<c:choose>
+	          											<c:when test="${soapDebugEnabled}">
+	            											<c:set var="checked" scope="page" value="checked"/>
+	          											</c:when>
+									          			<c:otherwise>
+									            			<c:set var="checked" scope="page" value=""/>
+									          			</c:otherwise>
+		                                    		</c:choose>
+													<input  ${checked} type="checkbox" name="soapDebugEnabled"/>
+												</td>
+												<td nowrap style="font-size: x-small;">
+													When this flag is checked all SOAP messages (requests & responses) are written on log file (or console depending on your configuration.)
+												 </td>
+											</tr>
+										</table>
+											</fieldset>
+									</td>
+								</tr>
+
+								<tr>
+									<td>
+											<fieldset>
+												<legend>QMan Logger Level</legend>
+										<table>
+											<tr>
+												<td>
+													<c:choose>
+														<c:when test="${qmanLogLevel == 'DEBUG'}">
+	            											<c:set var="qmanDebug" scope="page" value="selected='true'"/>
+	          											</c:when>
+									          			<c:otherwise>
+									            			<c:set var="qmanDebug" scope="page" value=""/>
+									          			</c:otherwise>
+													</c:choose>
+													<c:choose>
+														<c:when test="${qmanLogLevel == 'INFO'}">
+	            											<c:set var="qmanInfo" scope="page" value="selected='true'"/>
+	          											</c:when>
+									          			<c:otherwise>
+									            			<c:set var="qmanInfo" scope="page" value=""/>
+									          			</c:otherwise>
+													</c:choose>
+													<c:choose>
+														<c:when test="${qmanLogLevel == 'WARN'}">
+	            											<c:set var="qmanWarn" scope="page" value="selected='true'"/>
+	          											</c:when>
+									          			<c:otherwise>
+									            			<c:set var="qmanWarn" scope="page" value=""/>
+									          			</c:otherwise>
+													</c:choose>
+													<c:choose>
+														<c:when test="${qmanLogLevel == 'ERROR'}">
+	            											<c:set var="qmanError" scope="page" value="selected='true'"/>
+	          											</c:when>
+									          			<c:otherwise>
+									            			<c:set var="qmanError" scope="page" value=""/>
+									          			</c:otherwise>
+													</c:choose>
+													<c:choose>
+														<c:when test="${qmanLogLevel == 'FATAL'}">
+	            											<c:set var="qmanFatal" scope="page" value="selected='true'"/>
+	          											</c:when>
+									          			<c:otherwise>
+									            			<c:set var="qmanFatal" scope="page" value=""/>
+									          			</c:otherwise>
+													</c:choose>
+
+													<select name="qmanLogLevel">
+														<option ${qmanDebug} value="DEBUG">DEBUG</option>
+														<option ${qmanWarn} value="WARN">WARNING</option>
+														<option ${qmanInfo} value="INFO">INFO</option>
+														<option ${qmanError} value="ERROR">ERROR</option>
+														<option ${qmanFatal} value="FATAL">FATAL</option>
+													</select>
+												</td>
+												<td nowrap style="font-size: x-small;">
+													This is the current priority level set for QMan module (and sub-modules). Note that a WARNING level is recomended in production.
+												 </td>
+											</tr>
+										</table>
+											</fieldset>
+									</td>
+								</tr>
+
+								<tr>
+									<td>
+											<fieldset>
+												<legend>Web Server Logger Level</legend>
+										<table>
+											
+											<tr>
+												<td>
+													<c:choose>
+														<c:when test="${webServerLogLevel == 'DEBUG'}">
+	            											<c:set var="webServerDebug" scope="page" value="selected='true'"/>
+	          											</c:when>
+									          			<c:otherwise>
+									            			<c:set var="webServerDebug" scope="page" value=""/>
+									          			</c:otherwise>
+													</c:choose>
+													<c:choose>
+														<c:when test="${webServerLogLevel == 'INFO'}">
+	            											<c:set var="webServerInfo" scope="page" value="selected='true'"/>
+	          											</c:when>
+									          			<c:otherwise>
+									            			<c:set var="webServerInfo" scope="page" value=""/>
+									          			</c:otherwise>
+													</c:choose>
+													<c:choose>
+														<c:when test="${webServerLogLevel == 'WARN'}">
+	            											<c:set var="webServerWarn" scope="page" value="selected='true'"/>
+	          											</c:when>
+									          			<c:otherwise>
+									            			<c:set var="webServerWarn" scope="page" value=""/>
+									          			</c:otherwise>
+													</c:choose>
+													<c:choose>
+														<c:when test="${webServerLogLevel == 'ERROR'}">
+	            											<c:set var="webServerError" scope="page" value="selected='true'"/>
+	          											</c:when>
+									          			<c:otherwise>
+									            			<c:set var="webServerError" scope="page" value=""/>
+									          			</c:otherwise>
+													</c:choose>
+													<c:choose>
+														<c:when test="${webServerLogLevel == 'FATAL'}">
+	            											<c:set var="webServerFatal" scope="page" value="selected='true'"/>
+	          											</c:when>
+									          			<c:otherwise>
+									            			<c:set var="webServerFatal" scope="page" value=""/>
+									          			</c:otherwise>
+													</c:choose>
+
+													<select name="webServerLogLevel">
+														<option ${webServerDebug} value="DEBUG" >DEBUG</option>
+														<option ${webServerWarn} value="WARN">WARNING</option>
+														<option ${webServerInfo} value="INFO">INFO</option>
+														<option ${webServerError} value="ERROR">ERROR</option>
+														<option ${webServerFatak} value="FATAL">FATAL</option>
+													</select>
+												</td>
+												<td nowrap style="font-size: x-small; ">
+													This is the current priority level set for QMan module (and sub-modules). Note that a WARNING level is recomended in production.
+												 </td>
+											</tr>
+										</table>
+										</fieldset>
+									</td>
+								</tr>
+								<tr>
+									<td>
+										<input type="submit" value="Submit" title="Submit"/>
+									</td>
+								</tr>
+							</table>
+								<br/></br>
+								<span style="fony-size: medium; color: red; font-weight: bold">Note that in general a DEBUG level is not reccommended in production (especially for WSDL and SOAP debugger).</span>
+						</form>		
+                		</span>	
+            		</div>
+				</div>
+			</div>
+		</div>
+	</body>
+</html>
\ No newline at end of file

Added: qpid/trunk/qpid/java/management/client/console/resources_management.jsp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/management/client/console/resources_management.jsp?rev=741031&view=auto
==============================================================================
--- qpid/trunk/qpid/java/management/client/console/resources_management.jsp (added)
+++ qpid/trunk/qpid/java/management/client/console/resources_management.jsp Thu Feb  5 07:21:17 2009
@@ -0,0 +1,84 @@
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
+<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
+<%@page import="org.apache.qpid.management.web.action.BrokerModel"%>
+<%@page import="java.util.Set"%>
+<%@page import="javax.management.ObjectName"%>
+<%@page import="org.apache.qpid.management.Names"%>
+<%@page import="java.util.List"%>
+
+<%
+	BrokerModel model = (BrokerModel) request.getAttribute("model");	
+%>
+<html>
+	<head>
+		<link rel="stylesheet" href="<%=request.getContextPath()%>/images/style.css" type="text/css" />
+		<title>QMan Administration Console</title>
+	</head>
+	<body>
+		<div id="page" align="center">
+			<jsp:include page="/fragments/header.jsp">
+				<jsp:param name="title" value="Resources Management"/>
+			</jsp:include>
+				
+			<div id="content" align="center">
+				<jsp:include page="/fragments/menu.jsp"/>
+				
+				
+			<div id="contenttext">
+        	<div id="wsdmmenu" align="left">
+                <ul>
+                	<% if (model != null) {%>
+                    <li><a href="#"><span>${model.id}</span></a></li>
+                    <%} %>
+                </ul>
+            </div>
+            <br />
+			<div class="panel" align="justify" style="height:500px; overflow-y:auto;">
+				<span class="bodytext">
+                	<table width="100%" border="0" cellpadding="1" cellspacing="2">
+<%
+	if (model != null ){
+		Set<String> categoryNames = model.getCategoryNames();
+		for(String categoryName : categoryNames)
+		{
+			List<ObjectName> categoryObjects = model.getCategory(categoryName);
+%>                	          	
+                    	<tr>
+                        	<td valign="top" nowrap align="left">
+								<fieldset>
+									<legend><%=categoryName%></legend>
+                                        		<h4 style="color: #006633; font-size: xx-small">
+                                        			<ul>
+                                                 	<%
+                                                 		for (ObjectName objectName : categoryObjects)
+                                                 		{%>
+                                                 		
+                                                 		<li>
+                                                 			<a href="<%=request.getContextPath()%>/jmx_perspective?resourceId=<%=objectName%>">
+                                                 				<%=objectName.getKeyProperty(Names.OBJECT_ID)%>
+                                                 			</a>
+                                                 		</li>
+                                                 		<%
+                                                 		}
+                                                 	%>  
+                                                 </ul>	 
+								</fieldset>                                             
+                        	</td>
+						</tr>
+<%
+		}
+	} else {
+%>			
+<table><tr>
+<td nowrap style="font-weight: bold;" >Sorry, but it seems that QMan is not connected with any broker...</td>
+</tr>
+</table>
+<%
+	}
+%>
+				</table>
+				</span>			
+			</div>
+		</div>
+	</body>
+</html>
\ No newline at end of file

Added: qpid/trunk/qpid/java/management/client/console/tbd.jsp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/management/client/console/tbd.jsp?rev=741031&view=auto
==============================================================================
--- qpid/trunk/qpid/java/management/client/console/tbd.jsp (added)
+++ qpid/trunk/qpid/java/management/client/console/tbd.jsp Thu Feb  5 07:21:17 2009
@@ -0,0 +1,27 @@
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
+<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
+<html>
+	<head>
+		<link rel="stylesheet" href="<%=request.getContextPath()%>/images/style.css" type="text/css" />
+		<title>QMan Administration Console</title>
+	</head>
+	<body>
+		<div id="page" align="center">
+			<jsp:include page="/fragments/header.jsp">
+				<jsp:param name="title" value="TBD"/>
+			</jsp:include>
+				
+			<div id="content" align="center">
+				<jsp:include page="/fragments/menu.jsp"/>
+						
+				<div id="contenttext">
+					<div class="panel" align="justify" style="height:500px; overflow-y:auto;">
+						<span class="bodytext">
+								Sorry, this feature is not yet available!
+                		</span>	
+            		</div>
+				</div>
+			</div>
+		</div>
+	</body>
+</html>
\ No newline at end of file



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message