1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
|
<h1>Exchange: <b><%= fmt_exchange(exchange.name) %></b></h1>
<div class="section">
<h2>Overview</h2>
<div class="hider updatable">
<table class="facts">
<tr>
<th>Type</th>
<td class="l status"><%= fmt_exchange_type(exchange.type) %></td>
</tr>
<tr>
<th>Parameters</th>
<td><%= fmt_parameters(exchange) %></td>
</tr>
<% if (vhosts_interesting) { %>
<tr>
<th>Virtual host</th>
<td><%= fmt_string(exchange.vhost) %></td>
</tr>
<% } %>
</table>
</div>
</div>
<% if (statistics_level == 'fine') { %>
<div class="section-hidden">
<h2>Message rates</h2>
<div class="hider updatable">
<table class="two-col-layout">
<tr>
<td>
<%= format('msg-detail-publishes',
{'mode': 'exchange-incoming',
'object': exchange.incoming,
'label': 'Incoming <span class="help" id="exchange-rates-incoming"></span>',
'totals': exchange.message_stats_in}) %>
</td>
<td>
<%= format('msg-detail-publishes',
{'mode': 'exchange-outgoing',
'object': exchange.outgoing,
'label': 'Outgoing <span class="help" id="exchange-rates-outgoing"></span>',
'totals': exchange.message_stats_out}) %>
</td>
</tr>
</table>
</div>
</div>
<% } %>
<div class="section-hidden">
<h2>Bindings</h2>
<div class="hider">
<% if (exchange.name == "") { %>
<h3>Default exchange</h3>
<p>
The default exchange is implicitly bound to every queue, with a
routing key equal to the queue name. It it not possible to
explicitly bind to, or unbind from the default exchange. It also
cannot be deleted.
</p>
<% } else { %>
<% if (bindings_destination.length > 0) { %>
<h3>Incoming to <b><%= fmt_exchange(exchange.name) %></b></h3>
<table class="bindings updatable">
<tr>
<td>
<%= format('bindings', {'mode': 'exchange_destination', 'bindings': bindings_destination}) %>
</td>
<td class="binding-endpoint">
<span class="arrow">→</span>
<span class="object"><%= fmt_exchange(exchange.name) %></span>
</td>
</tr>
</table>
<% } %>
<h3>Outgoing from <b><%= fmt_exchange(exchange.name) %></b></h3>
<table class="bindings updatable">
<tr>
<td class="binding-endpoint">
<span class="object"><%= fmt_exchange(exchange.name) %></span>
<span class="arrow">→</span>
</td>
<td>
<%= format('bindings', {'mode': 'exchange_source', 'bindings': bindings_source}) %>
</td>
</tr>
</table>
<%= format('add-binding', {'mode': 'exchange_source', 'parent': exchange}) %>
<% } %>
</div>
</div>
<% if (!exchange.internal) { %>
<%= format('publish', {'mode': 'exchange', 'exchange': exchange}) %>
<% } %>
<% if (exchange.name != "") { %>
<div class="section-hidden">
<h2>Delete this exchange</h2>
<div class="hider">
<form action="#/exchanges" method="delete" class="confirm">
<input type="hidden" name="vhost" value="<%= fmt_string(exchange.vhost) %>"/>
<input type="hidden" name="name" value="<%= fmt_exchange_url(exchange.name) %>"/>
<input type="submit" value="Delete"/>
</form>
</div>
</div>
<% } %>
|