2010-07-17 00:38:06 +08:00
|
|
|
<h1>Queues</h1>
|
2010-09-29 21:45:40 +08:00
|
|
|
<div class="section">
|
|
|
|
|
<h2>All queues</h2>
|
2010-10-27 23:39:56 +08:00
|
|
|
<div class="hider updatable">
|
2010-09-29 21:45:40 +08:00
|
|
|
<%= maybe_truncate(queues) %>
|
2010-07-17 00:38:06 +08:00
|
|
|
<% if (queues.length > 0) { %>
|
|
|
|
|
<table class="list">
|
|
|
|
|
<thead>
|
2010-07-23 21:01:10 +08:00
|
|
|
<tr>
|
2010-11-05 22:40:09 +08:00
|
|
|
<th colspan="<% if (nodes_interesting) { %>5<% } else { %>4<% } %>">Overview</th>
|
2010-07-17 00:38:06 +08:00
|
|
|
<th colspan="3">Messages</th>
|
2010-10-29 20:01:22 +08:00
|
|
|
<% if (statistics_level == 'fine') { %>
|
|
|
|
|
<th colspan="3">Message rates</th>
|
|
|
|
|
<% } %>
|
2010-07-17 00:38:06 +08:00
|
|
|
</tr>
|
2010-07-23 21:01:10 +08:00
|
|
|
<tr>
|
2010-10-12 00:05:06 +08:00
|
|
|
<th><%= fmt_sort('Virtual host', 'vhost') %></th>
|
|
|
|
|
<th><%= fmt_sort('Name', 'name') %></th>
|
2010-11-05 22:40:09 +08:00
|
|
|
<% if (nodes_interesting) { %>
|
|
|
|
|
<th><%= fmt_sort('Node', 'node') %></th>
|
|
|
|
|
<% } %>
|
2010-10-29 20:01:22 +08:00
|
|
|
<th><%= fmt_sort('Exclusive', 'owner_pid_details.name') %></th>
|
|
|
|
|
<th>Parameters</th>
|
2010-10-12 00:05:06 +08:00
|
|
|
<th><%= fmt_sort('Ready', 'messages_ready') %></th>
|
|
|
|
|
<th><%= fmt_sort('Unacked', 'messages_unacknowledged') %></th>
|
|
|
|
|
<th><%= fmt_sort('Total', 'messages') %></th>
|
2010-10-29 20:01:22 +08:00
|
|
|
<% if (statistics_level == 'fine') { %>
|
|
|
|
|
<th><%= fmt_sort('incoming', 'message_stats.publish_details.rate') %></th>
|
|
|
|
|
<th><%= fmt_sort('deliver / get', 'message_stats.deliver_get_details.rate') %></th>
|
|
|
|
|
<th><%= fmt_sort('ack', 'message_stats.ack_details.rate') %></th>
|
|
|
|
|
<% } %>
|
2010-07-17 00:38:06 +08:00
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
2010-09-29 21:45:40 +08:00
|
|
|
<%
|
|
|
|
|
for (var i = 0; i < queues.length; i++) {
|
|
|
|
|
var queue = queues[i];
|
|
|
|
|
%>
|
|
|
|
|
<tr<%= alt_rows(i) %>>
|
|
|
|
|
<td><%= link_vhost(queue.vhost) %></td>
|
|
|
|
|
<td><%= link_queue(queue.vhost, queue.name) %></td>
|
2010-11-05 22:40:09 +08:00
|
|
|
<% if (nodes_interesting) { %>
|
|
|
|
|
<td><%= queue.node %></td>
|
|
|
|
|
<% } %>
|
2010-10-29 20:01:22 +08:00
|
|
|
<td>
|
2010-09-29 21:45:40 +08:00
|
|
|
<% if (queue.owner_pid != 'none') { %>
|
|
|
|
|
<%= link_conn(queue.owner_pid_details.name) %>
|
2010-07-24 00:24:01 +08:00
|
|
|
<% } %>
|
|
|
|
|
</td>
|
2010-10-29 20:01:22 +08:00
|
|
|
<td class="c">
|
|
|
|
|
<%= fmt_parameters(queue) %>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="r"><%= fmt_string(queue.messages_ready) %></td>
|
|
|
|
|
<td class="r"><%= fmt_string(queue.messages_unacknowledged) %></td>
|
|
|
|
|
<td class="r"><%= fmt_string(queue.messages) %></td>
|
|
|
|
|
<% if (statistics_level == 'fine') { %>
|
|
|
|
|
<td class="r"><%= fmt_rate(queue.message_stats, 'publish', false) %></td>
|
|
|
|
|
<td class="r"><%= fmt_rate(queue.message_stats, 'deliver_get', false) %></td>
|
|
|
|
|
<td class="r"><%= fmt_rate(queue.message_stats, 'ack', false) %></td>
|
|
|
|
|
<% } %>
|
2010-07-17 00:38:06 +08:00
|
|
|
</tr>
|
|
|
|
|
<% } %>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
<% } else { %>
|
|
|
|
|
<p>... no queues ...</p>
|
|
|
|
|
<% } %>
|
2010-09-29 21:45:40 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2010-08-27 17:55:32 +08:00
|
|
|
|
|
|
|
|
<div class="section-hidden">
|
|
|
|
|
<h2>Add a new queue</h2>
|
2010-10-27 19:41:55 +08:00
|
|
|
<div class="hider">
|
2010-08-27 17:55:32 +08:00
|
|
|
<form action="#/queues" method="put">
|
|
|
|
|
<table class="form">
|
|
|
|
|
<tr>
|
|
|
|
|
<th><label>Virtual host:</label></th>
|
|
|
|
|
<td>
|
|
|
|
|
<select name="vhost">
|
|
|
|
|
<% for (var i = 0; i < vhosts.length; i++) { %>
|
2010-09-22 04:20:07 +08:00
|
|
|
<option value="<%= vhosts[i].name %>"><%= vhosts[i].name %></option>
|
2010-08-27 17:55:32 +08:00
|
|
|
<% } %>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th><label>Name:</label></th>
|
|
|
|
|
<td><input type="text" name="name"/></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th><label>Durability:</label></th>
|
|
|
|
|
<td>
|
|
|
|
|
<select name="durable">
|
|
|
|
|
<option value="true">Durable</option>
|
|
|
|
|
<option value="false">Transient</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th><label>Auto delete:</label></th>
|
|
|
|
|
<td>
|
|
|
|
|
<select name="auto_delete">
|
|
|
|
|
<option value="false">No</option>
|
|
|
|
|
<option value="true">Yes</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th><label>Arguments:</label></th>
|
2010-10-12 21:08:17 +08:00
|
|
|
<td><span class="multifield" id="arguments"></span></td>
|
2010-08-27 17:55:32 +08:00
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<input type="submit" value="Add queue"/>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|