File: streamConnections.ejs

package info (click to toggle)
rabbitmq-server 4.0.5-8
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 37,972 kB
  • sloc: erlang: 257,835; javascript: 22,466; sh: 3,037; makefile: 2,517; python: 1,966; xml: 646; cs: 335; java: 244; ruby: 212; php: 100; perl: 63; awk: 13
file content (142 lines) | stat: -rw-r--r-- 5,102 bytes parent folder | download | duplicates (5)
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
<div class="section">
 <%= paginate_ui(connections, 'streamConnections', 'stream connections') %>
</div>
<div class="updatable">
<% if (connections.items.length > 0) { %>
<table class="list">
 <thead>
  <tr>
    <%= group_heading('streamConnections', 'Overview', [vhosts_interesting, nodes_interesting, true]) %>
    <% if (!disable_stats) { %>
    <%= group_heading('streamConnections', 'Details', []) %>
    <%= group_heading('streamConnections', 'Network', []) %>
    <% } %>
    <th class="plus-minus"><span class="popup-options-link" title="Click to change columns" type="columns" for="streamConnections">+/-</span></th>
  </tr>
  <tr>
<% if (vhosts_interesting) { %>
    <th><%= fmt_sort('Virtual host', 'vhost') %></th>
<% } %>
<% if(disable_stats) { %>
    <th><%= fmt_sort('Name',           'name') %></th>
<% } else { %>
    <th><%= fmt_sort('Name',           'client_properties.connection_name') %></th>
<% } %>
<% if (nodes_interesting) { %>
    <th><%= fmt_sort('Node',           'node') %></th>
<% } %>
<% if (show_column('streamConnections',      'user')) { %>
    <th><%= fmt_sort('User name',      'user') %></th>
<% } %>
<% if (!disable_stats) { %>
<% if (show_column('streamConnections',      'state')) { %>
    <th><%= fmt_sort('State',          'state') %></th>
<% } %>
<% if (show_column('streamConnections',      'ssl')) { %>
    <th><%= fmt_sort('SSL / TLS',      'ssl') %></th>
<% } %>
<% if (show_column('streamConnections',      'ssl_info')) { %>
    <th>SSL Details</th>
<% } %>
<% if (show_column('streamConnections',      'protocol')) { %>
    <th><%= fmt_sort('Protocol',       'protocol') %></th>
<% } %>
<% if (show_column('streamConnections',      'frame_max')) { %>
    <th><%= fmt_sort('Frame max',      'frame_max') %></th>
<% } %>
<% if (show_column('streamConnections',      'auth_mechanism')) { %>
    <th><%= fmt_sort('Auth mechanism', 'auth_mechanism') %></th>
<% } %>
<% if (show_column('streamConnections',      'client')) { %>
    <th><%= fmt_sort('Client',         'properties') %></th>
<% } %>
<% if (show_column('streamConnections',      'from_client')) { %>
    <th><%= fmt_sort('From client',    'recv_oct_details.rate') %></th>
<% } %>
<% if (show_column('streamConnections',      'to_client')) { %>
    <th><%= fmt_sort('To client',      'send_oct_details.rate') %></th>
<% } %>
<% if (show_column('streamConnections',      'heartbeat')) { %>
    <th><%= fmt_sort('Heartbeat',      'timeout') %></th>
<% } %>
<% if (show_column('streamConnections',      'connected_at')) { %>
    <th><%= fmt_sort('Connected at',   'connected_at') %></th>
<% } %>
<% } %>
  </tr>
 </thead>
 <tbody>
<%
 for (var i = 0; i < connections.items.length; i++) {
    var connection = connections.items[i];
%>
  <tr<%= alt_rows(i)%>>
<% if (vhosts_interesting) { %>
    <td><%= fmt_string(connection.vhost) %></td>
<% } %>
<% if(connection.client_properties) { %>
    <td>
      <%= link_stream_conn(connection.vhost, connection.name) %>
      <sub><%= fmt_string(short_conn(connection.client_properties.connection_name)) %></sub>
    </td>
<% } else { %>
    <td><%= link_stream_conn(connection.vhost, connection.name) %></td>
<% } %>
<% if (nodes_interesting) { %>
    <td><%= fmt_node(connection.node) %></td>
<% } %>
<% if (show_column('streamConnections', 'user')) { %>
    <td class="c"><%= fmt_string(connection.user) %></td>
<% } %>
<% if (!disable_stats) { %>
<% if (show_column('streamConnections', 'state')) { %>
    <td><%= fmt_object_state(connection) %></td>
<% } %>
<% if (show_column('streamConnections', 'ssl')) { %>
    <td class="c"><%= fmt_boolean(connection.ssl, '') %></td>
<% } %>
<% if (show_column('streamConnections', 'ssl_info')) { %>
    <td>
    <% if (connection.ssl) { %>
      <%= connection.ssl_protocol %>
      <sub>
        <%= connection.ssl_key_exchange %>
        <%= connection.ssl_cipher %>
        <%= connection.ssl_hash %>
      </sub>
    <% } %>
    </td>
<% } %>
<% if (show_column('streamConnections', 'protocol')) { %>
    <td class="c"><%= connection.protocol %></td>
<% } %>
<% if (show_column('streamConnections', 'frame_max')) { %>
    <td class="r"><%= fmt_string(connection.frame_max, '') %></td>
<% } %>
<% if (show_column('streamConnections', 'auth_mechanism')) { %>
    <td class="c"><%= fmt_string(connection.auth_mechanism, '') %></td>
<% } %>
<% if (show_column('streamConnections', 'client')) { %>
    <td><%= fmt_client_name(connection.client_properties) %></td>
<% } %>
<% if (show_column('streamConnections', 'from_client')) { %>
    <td><%= fmt_detail_rate_bytes(connection, 'recv_oct') %></td>
<% } %>
<% if (show_column('streamConnections', 'to_client')) { %>
    <td><%= fmt_detail_rate_bytes(connection, 'send_oct') %></td>
<% } %>
<% if (show_column('streamConnections', 'heartbeat')) { %>
    <td class="r"><%= fmt_time(connection.timeout, 's') %></td>
<% } %>
<% if (show_column('streamConnections', 'connected_at')) { %>
    <td><%= fmt_timestamp_mini(connection.connected_at) %></td>
<% } %>
  <% } %>
  </tr>
  <% } %>
 </tbody>
</table>
<% } else { %>
  <p>... no connections ...</p>
<% } %>
</div>