activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r433678 - in /incubator/activemq/trunk/activemq-web-console/src/main/webapp: WEB-INF/decorators.xml queues.jsp xml/ xml/queues.jsp
Date Tue, 22 Aug 2006 15:46:25 GMT
Author: jstrachan
Date: Tue Aug 22 08:46:25 2006
New Revision: 433678

URL: http://svn.apache.org/viewvc?rev=433678&view=rev
Log:
added an XML view of the queue statistics on the web console so folks can slurp up the XML
in any old scripting language and write their own alert monitoring stuff

Added:
    incubator/activemq/trunk/activemq-web-console/src/main/webapp/xml/
    incubator/activemq/trunk/activemq-web-console/src/main/webapp/xml/queues.jsp   (with props)
Modified:
    incubator/activemq/trunk/activemq-web-console/src/main/webapp/WEB-INF/decorators.xml
    incubator/activemq/trunk/activemq-web-console/src/main/webapp/queues.jsp

Modified: incubator/activemq/trunk/activemq-web-console/src/main/webapp/WEB-INF/decorators.xml
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-web-console/src/main/webapp/WEB-INF/decorators.xml?rev=433678&r1=433677&r2=433678&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-web-console/src/main/webapp/WEB-INF/decorators.xml (original)
+++ incubator/activemq/trunk/activemq-web-console/src/main/webapp/WEB-INF/decorators.xml Tue
Aug 22 08:46:25 2006
@@ -1,26 +1,30 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!--
-    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.
+  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.
 -->
 
 <decorators defaultdir="/decorators">
-    <decorator name="main" page="main.jsp">
-        <pattern>/*</pattern>
-    </decorator>
+  <excludes>
+    <pattern>/xml/*</pattern>
+  </excludes>
 
-    <decorator name="panel" page="panel.jsp"/>
-    <decorator name="printable" page="printable.jsp"/>
+  <decorator name="main" page="main.jsp">
+    <pattern>/*</pattern>
+  </decorator>
+
+  <decorator name="panel" page="panel.jsp" />
+  <decorator name="printable" page="printable.jsp" />
 </decorators>

Modified: incubator/activemq/trunk/activemq-web-console/src/main/webapp/queues.jsp
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-web-console/src/main/webapp/queues.jsp?rev=433678&r1=433677&r2=433678&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-web-console/src/main/webapp/queues.jsp (original)
+++ incubator/activemq/trunk/activemq-web-console/src/main/webapp/queues.jsp Tue Aug 22 08:46:25
2006
@@ -33,8 +33,10 @@
 
 <h2>Queues</h2>
 
+<p>
 <a href="queueGraph.jsp">Queue Graph</a>
-
+<a href="xml/queues.jsp">Queue XML</a>
+</p>
 <table id="queues" class="sortable autostripe">
 <thead>
 <tr>

Added: incubator/activemq/trunk/activemq-web-console/src/main/webapp/xml/queues.jsp
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-web-console/src/main/webapp/xml/queues.jsp?rev=433678&view=auto
==============================================================================
--- incubator/activemq/trunk/activemq-web-console/src/main/webapp/xml/queues.jsp (added)
+++ incubator/activemq/trunk/activemq-web-console/src/main/webapp/xml/queues.jsp Tue Aug 22
08:46:25 2006
@@ -0,0 +1,30 @@
+<%@ page contentType="text/xml;charset=ISO-8859-1"%>
+<%--
+    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.
+--%>
+<queues>
+<c:forEach items="${requestContext.brokerQuery.queues}" var="row">
+<queue name="${row.name}">
+
+  <stats size="${row.queueSize}" consumerCount="${row.consumerCount}" enqueueCount="${row.enqueueCount}"
dequeueCount="${row.dequeueCount}"/>
+
+  <feed>
+    <atom><c:url value="queueBrowse/${row.name}?view=rss&amp;feedType=atom_1.0"/></atom>
+    <rss><c:url value="queueBrowse/${row.name}?view=rss&amp;feedType=rss_2.0"/></rss>
+  </feed>
+</queue>
+</c:forEach>
+</queues>

Propchange: incubator/activemq/trunk/activemq-web-console/src/main/webapp/xml/queues.jsp
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message