diff options
| author | Rajith Muditha Attapattu <rajith@apache.org> | 2010-02-12 22:30:38 +0000 |
|---|---|---|
| committer | Rajith Muditha Attapattu <rajith@apache.org> | 2010-02-12 22:30:38 +0000 |
| commit | 68fb9a03641e50fbb6c045ac2f39091bf0bf9d08 (patch) | |
| tree | 684f87aa8623194569120620290faf135f23d53e /java/management/client/console/resources_management.jsp | |
| parent | 0b4bb5acdba9afef93a99864b39e1de438b5dc42 (diff) | |
| download | qpid-python-68fb9a03641e50fbb6c045ac2f39091bf0bf9d08.tar.gz | |
I have added the license header to the files included in this commit.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@909641 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/management/client/console/resources_management.jsp')
| -rw-r--r-- | java/management/client/console/resources_management.jsp | 189 |
1 files changed, 105 insertions, 84 deletions
diff --git a/java/management/client/console/resources_management.jsp b/java/management/client/console/resources_management.jsp index 1541f3a5bc..4a6f9efed6 100644 --- a/java/management/client/console/resources_management.jsp +++ b/java/management/client/console/resources_management.jsp @@ -1,84 +1,105 @@ -<%@ 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 +<!-- + + 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 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> |
