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

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@433678 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2006-08-22 15:46:25 +00:00
parent 6a12e9cdeb
commit 4ce744b16b
3 changed files with 56 additions and 20 deletions

View File

@ -17,10 +17,14 @@
-->
<decorators defaultdir="/decorators">
<excludes>
<pattern>/xml/*</pattern>
</excludes>
<decorator name="main" page="main.jsp">
<pattern>/*</pattern>
</decorator>
<decorator name="panel" page="panel.jsp"/>
<decorator name="printable" page="printable.jsp"/>
<decorator name="panel" page="panel.jsp" />
<decorator name="printable" page="printable.jsp" />
</decorators>

View File

@ -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>

View File

@ -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>