2011-11-30 21:43:42 +08:00
|
|
|
<h1>Queue <b><%= fmt_string(queue.name) %></b></h1>
|
2010-08-27 17:55:32 +08:00
|
|
|
|
|
|
|
|
<div class="section">
|
2010-11-18 00:13:28 +08:00
|
|
|
<h2>Overview</h2>
|
2010-10-27 23:39:56 +08:00
|
|
|
<div class="hider updatable">
|
2010-11-18 00:13:28 +08:00
|
|
|
<h3>Messages</h3>
|
2011-07-29 19:58:18 +08:00
|
|
|
<div class="box">
|
2011-11-25 20:48:58 +08:00
|
|
|
<%= queue_length(queue, 'Ready', 'messages_ready') %>
|
|
|
|
|
<%= queue_length(queue, 'Unacknowledged', 'messages_unacknowledged') %>
|
|
|
|
|
<%= queue_length(queue, 'Total', 'messages') %>
|
2010-11-18 00:13:28 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<h3>Details</h3>
|
2010-08-27 17:55:32 +08:00
|
|
|
<table class="facts">
|
|
|
|
|
<tr>
|
2010-11-18 00:13:28 +08:00
|
|
|
<th>Parameters</th>
|
|
|
|
|
<td><%= fmt_parameters(queue) %></td>
|
2010-08-27 17:55:32 +08:00
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2010-11-18 00:13:28 +08:00
|
|
|
<th>Exclusive owner</th>
|
2010-08-27 17:55:32 +08:00
|
|
|
<td>
|
2010-11-18 19:46:41 +08:00
|
|
|
<% if (queue.owner_pid_details == undefined) { %>
|
|
|
|
|
None
|
|
|
|
|
<% } else { %>
|
|
|
|
|
<%= link_conn(queue.owner_pid_details.name) %>
|
2010-08-27 17:55:32 +08:00
|
|
|
<% } %>
|
|
|
|
|
</td>
|
2010-11-18 00:13:28 +08:00
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Status</th>
|
|
|
|
|
<td><%= fmt_idle_long(queue) %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
<table class="facts">
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Consumers</th>
|
2010-08-27 17:55:32 +08:00
|
|
|
<td><%= fmt_string(queue.consumers) %></td>
|
2010-11-18 00:13:28 +08:00
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Memory</th>
|
2010-08-27 17:55:32 +08:00
|
|
|
<td><%= fmt_bytes(queue.memory) %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
2010-11-18 00:13:28 +08:00
|
|
|
|
|
|
|
|
<table class="facts">
|
|
|
|
|
<% if (vhosts_interesting) { %>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Virtual host</th>
|
2011-11-30 21:43:42 +08:00
|
|
|
<td><%= fmt_string(queue.vhost) %></td>
|
2010-11-18 00:13:28 +08:00
|
|
|
</tr>
|
|
|
|
|
<% } %>
|
|
|
|
|
<% if (nodes_interesting) { %>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Node</th>
|
2011-11-30 21:43:42 +08:00
|
|
|
<td><%= fmt_string(queue.node) %></td>
|
2010-11-18 00:13:28 +08:00
|
|
|
</tr>
|
2011-05-25 18:58:56 +08:00
|
|
|
<tr>
|
|
|
|
|
<th>Mirrors</th>
|
|
|
|
|
<td>
|
2011-07-15 22:52:29 +08:00
|
|
|
<% for (var i in queue.slave_nodes) {
|
|
|
|
|
var node = queue.slave_nodes[i];
|
|
|
|
|
%>
|
|
|
|
|
<% if (jQuery.inArray(node, queue.synchronised_slave_nodes) == -1) { %>
|
2011-11-30 21:43:42 +08:00
|
|
|
<%= fmt_string(node) %> <b>(unsynchronised)</b>
|
2011-07-15 22:52:29 +08:00
|
|
|
<% } else { %>
|
2011-11-30 21:43:42 +08:00
|
|
|
<%= fmt_string(node) %>
|
2011-07-15 22:52:29 +08:00
|
|
|
<% } %>
|
|
|
|
|
<br/>
|
2011-05-25 18:58:56 +08:00
|
|
|
<% } %>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2010-11-18 00:13:28 +08:00
|
|
|
<% } %>
|
|
|
|
|
</table>
|
2010-08-27 17:55:32 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2010-10-29 22:49:52 +08:00
|
|
|
<% if (statistics_level == 'fine') { %>
|
|
|
|
|
<div class="section-hidden">
|
2011-05-23 22:57:33 +08:00
|
|
|
<h2>Message rates</h2>
|
2010-10-29 22:49:52 +08:00
|
|
|
<div class="hider updatable">
|
|
|
|
|
<table class="two-col-layout">
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
<%= format('msg-detail-publishes',
|
|
|
|
|
{'mode': 'queue',
|
|
|
|
|
'object': queue.incoming,
|
2010-10-30 00:45:02 +08:00
|
|
|
'label': 'Incoming',
|
|
|
|
|
'totals': queue.message_stats}) %>
|
|
|
|
|
|
2010-10-29 22:49:52 +08:00
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<%= format('msg-detail-deliveries',
|
|
|
|
|
{'mode': 'queue',
|
2010-10-30 00:45:02 +08:00
|
|
|
'object': queue.deliveries,
|
|
|
|
|
'totals': queue.message_stats}) %>
|
2010-10-29 22:49:52 +08:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<% } %>
|
|
|
|
|
|
2011-02-22 22:11:22 +08:00
|
|
|
<div class="section-hidden">
|
|
|
|
|
<h2>Consumers</h2>
|
|
|
|
|
<div class="hider updatable">
|
|
|
|
|
<%= format('consumers', {'mode': 'queue', 'consumers': queue.consumer_details}) %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2010-11-18 00:13:28 +08:00
|
|
|
<div class="section-hidden">
|
2010-10-14 18:21:33 +08:00
|
|
|
<h2>Bindings</h2>
|
2011-02-25 01:34:18 +08:00
|
|
|
<div class="hider">
|
2011-11-30 21:43:42 +08:00
|
|
|
<h3>Incoming to <b><%= fmt_string(queue.name) %></b></h3>
|
2011-02-25 01:34:18 +08:00
|
|
|
<table class="bindings updatable">
|
2010-10-14 19:53:57 +08:00
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
<%= format('bindings', {'mode': 'queue', 'bindings': bindings}) %>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="binding-endpoint">
|
|
|
|
|
<span class="arrow">→</span>
|
|
|
|
|
<span class="object"><%= queue.name %></span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
2010-10-14 18:21:33 +08:00
|
|
|
|
|
|
|
|
<%= format('add-binding', {'mode': 'queue', 'parent': queue}) %>
|
2010-09-02 00:26:51 +08:00
|
|
|
|
2011-02-22 22:11:22 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2012-02-22 00:04:03 +08:00
|
|
|
<%= format('publish', {'mode': 'queue', 'queue': queue}) %>
|
|
|
|
|
|
2011-02-22 02:20:33 +08:00
|
|
|
<div class="section-hidden">
|
2011-05-23 22:57:33 +08:00
|
|
|
<h2>Get messages</h2>
|
2011-02-22 02:20:33 +08:00
|
|
|
<div class="hider">
|
|
|
|
|
<p>
|
2011-02-22 22:00:20 +08:00
|
|
|
Warning: getting messages from a queue is a destructive action.
|
|
|
|
|
<span class="help" id="message-get-requeue"></span>
|
2011-02-22 02:20:33 +08:00
|
|
|
</p>
|
|
|
|
|
<form action="#/queues/get" method="post">
|
2011-11-30 21:43:42 +08:00
|
|
|
<input type="hidden" name="vhost" value="<%= fmt_string(queue.vhost) %>"/>
|
|
|
|
|
<input type="hidden" name="name" value="<%= fmt_string(queue.name) %>"/>
|
2011-03-11 01:22:08 +08:00
|
|
|
<input type="hidden" name="truncate" value="50000"/>
|
2011-02-22 22:00:20 +08:00
|
|
|
<table class="form">
|
|
|
|
|
<tr>
|
|
|
|
|
<th><label>Requeue:</label></th>
|
|
|
|
|
<td>
|
|
|
|
|
<select name="requeue">
|
|
|
|
|
<option value="true">Yes</option>
|
|
|
|
|
<option value="false">No</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2011-03-11 00:33:58 +08:00
|
|
|
<tr>
|
|
|
|
|
<th><label>Encoding:</label></th>
|
|
|
|
|
<td>
|
|
|
|
|
<select name="encoding">
|
|
|
|
|
<option value="auto">Auto string / base64</option>
|
|
|
|
|
<option value="base64">base64</option>
|
|
|
|
|
</select>
|
|
|
|
|
<span class="help" id="string-base64"></span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2011-02-22 22:00:20 +08:00
|
|
|
<tr>
|
|
|
|
|
<th><label>Messages:</label></th>
|
|
|
|
|
<td><input type="text" name="count" value="1"/></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<input type="submit" value="Get Message(s)" />
|
2011-02-22 02:20:33 +08:00
|
|
|
</form>
|
|
|
|
|
<div id="msg-wrapper"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2010-10-01 00:49:28 +08:00
|
|
|
<div class="section-hidden">
|
2011-05-23 22:57:33 +08:00
|
|
|
<h2>Delete / purge</h2>
|
2010-10-27 19:41:55 +08:00
|
|
|
<div class="hider">
|
2010-11-18 00:13:28 +08:00
|
|
|
<form action="#/queues" method="delete" class="confirm inline-form">
|
2011-11-30 21:43:42 +08:00
|
|
|
<input type="hidden" name="vhost" value="<%= fmt_string(queue.vhost) %>"/>
|
|
|
|
|
<input type="hidden" name="name" value="<%= fmt_string(queue.name) %>"/>
|
2010-11-18 00:13:28 +08:00
|
|
|
<input type="hidden" name="mode" value="delete"/>
|
|
|
|
|
<input type="submit" value="Delete" />
|
2010-10-01 00:49:28 +08:00
|
|
|
</form>
|
|
|
|
|
|
2011-01-28 01:22:24 +08:00
|
|
|
<form action="#/queues" method="delete" class="inline-form-right">
|
2011-11-30 21:43:42 +08:00
|
|
|
<input type="hidden" name="vhost" value="<%= fmt_string(queue.vhost) %>"/>
|
|
|
|
|
<input type="hidden" name="name" value="<%= fmt_string(queue.name) %>"/>
|
2010-11-18 00:13:28 +08:00
|
|
|
<input type="hidden" name="mode" value="purge"/>
|
|
|
|
|
<input type="submit" value="Purge" />
|
2010-08-27 17:55:32 +08:00
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|