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 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
|
<h2>Connection <%= fmt_string(connection.name) %> <%= fmt_maybe_vhost(connection.vhost) %></h1>
<% if (!disable_stats) { %>
<div class="section">
<h2>Overview</h2>
<div class="hider updatable">
<%= data_rates('data-rates-conn', connection, 'Data rates') %>
<h3>Details</h3>
<table class="facts facts-l">
<% if (nodes_interesting) { %>
<tr>
<th>Node</th>
<td><%= fmt_node(connection.node) %></td>
</tr>
<% } %>
<% if (connection.client_properties.connection_name) { %>
<tr>
<th>Client-provided name</th>
<td><%= fmt_string(connection.client_properties.connection_name) %></td>
</tr>
<% } %>
<tr>
<th>Username</th>
<td><%= fmt_string(connection.user) %></td>
</tr>
<tr>
<th>Protocol</th>
<td><%= connection.protocol %></td>
</tr>
<tr>
<th>Connected at</th>
<td><%= fmt_timestamp(connection.connected_at) %></td>
</tr>
<% if (connection.ssl) { %>
<tr>
<th>SSL</th>
<td><%= fmt_boolean(connection.ssl) %></td>
</tr>
<% } %>
<% if (connection.auth_mechanism) { %>
<tr>
<th>Authentication</th>
<td><%= connection.auth_mechanism %></td>
</tr>
<% } %>
</table>
<% if (connection.state) { %>
<table class="facts">
<tr>
<th>State</th>
<td><%= fmt_object_state(connection) %></td>
</tr>
<tr>
<th>Heartbeat</th>
<td><%= fmt_time(connection.timeout, 's') %></td>
</tr>
<tr>
<th>Frame max</th>
<td><%= connection.frame_max %> bytes</td>
</tr>
</table>
<% } %>
</div>
</div>
<% if (connection.ssl) { %>
<div class="section">
<h2>SSL</h2>
<div class="hider">
<table class="facts">
<tr>
<th>Protocol Version</th>
<td><%= connection.ssl_protocol %></td>
</tr>
<tr>
<th>Key Exchange Algorithm</th>
<td><%= connection.ssl_key_exchange %></td>
</tr>
<tr>
<th>Cipher Algorithm</th>
<td><%= connection.ssl_cipher %></td>
</tr>
<tr>
<th>Hash Algorithm</th>
<td><%= connection.ssl_hash %></td>
</tr>
</table>
<% if (connection.peer_cert_issuer != '') { %>
<table class="facts">
<tr>
<th>Peer Certificate Issuer</th>
<td><%= connection.peer_cert_issuer %></td>
</tr>
<tr>
<th>Peer Certificate Subject</th>
<td><%= connection.peer_cert_subject %></td>
</tr>
<tr>
<th>Peer Certificate Validity</th>
<td><%= connection.peer_cert_validity %></td>
</tr>
</table>
<% } %>
</div>
</div>
<% } %>
<div class="section">
<h2 class="updatable">Publishers (<%=(publishers.length)%>) </h2>
<div class="hider updatable">
<%= format('streamPublishersList', {'publishers': publishers, 'mode' : 'connection'}) %>
</div>
</div>
<div class="section">
<h2 class="updatable" >Consumers (<%=(consumers.length)%>)</h2>
<div class="hider updatable">
<%= format('streamConsumersList', {'consumers': consumers}) %>
</div>
</div>
<% if (properties_size(connection.client_properties) > 0) { %>
<div class="section-hidden">
<h2>Client properties</h2>
<div class="hider">
<%= fmt_table_long(connection.client_properties) %>
</div>
</div>
<% } %>
<% if(connection.reductions || connection.garbage_collection) { %>
<div class="section-hidden">
<h2>Runtime Metrics (Advanced)</h2>
<div class="hider updatable">
<%= data_reductions('reductions-rates-conn', connection) %>
<table class="facts">
<% if (connection.garbage_collection.min_bin_vheap_size) { %>
<tr>
<th>Minimum binary virtual heap size in words (min_bin_vheap_size)</th>
<td><%= connection.garbage_collection.min_bin_vheap_size %></td>
</tr>
<% } %>
<% if (connection.garbage_collection.min_heap_size) { %>
<tr>
<th>Minimum heap size in words (min_heap_size)</th>
<td><%= connection.garbage_collection.min_heap_size %></td>
</tr>
<% } %>
<% if (connection.garbage_collection.fullsweep_after) { %>
<tr>
<th>Maximum generational collections before fullsweep (fullsweep_after)</th>
<td><%= connection.garbage_collection.fullsweep_after %></td>
</tr>
<% } %>
<% if (connection.garbage_collection.minor_gcs) { %>
<tr>
<th>Number of minor GCs (minor_gcs)</th>
<td><%= connection.garbage_collection.minor_gcs %></td>
</tr>
<% } %>
</table>
</div>
</div>
<% } %>
<% } %>
<div class="section-hidden">
<h2>Close this connection</h2>
<div class="hider">
<form action="#/connections" method="delete" class="confirm">
<input type="hidden" name="name" value="<%= fmt_string(connection.name) %>"/>
<table class="form">
<tr>
<th><label>Reason:</label></th>
<td>
<input type="text" name="reason" value="Closed via management plugin" class="wide"/>
</td>
</tr>
</table>
<input type="submit" value="Force Close"/>
</form>
</div>
</div>
|