Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 69 lines (58 sloc) 2.488 kB
276c67e @sebgiroux Multi clusters support
authored
1 <div id="cluster_selection">
33595c2 @sebgiroux Make the app works with PHP config short_open_tag=off
authored
2 <?php if (count($cluster_details) > 1): ?>
276c67e @sebgiroux Multi clusters support
authored
3 Select a cluster:
4 <select name="cluster" id="cluster" onchange="applyClusterChange();">
5 <?php foreach ($cluster_details as $index => $one_cluster): ?>
e2c23d1 @sebgiroux Created Helper class (ClusterHelper and ColumnFamilyHelper) to cleanu…
authored
6 <?php $current_cluster_name = $cluster_helper->getClusterNameForIndex($index); ?>
33595c2 @sebgiroux Make the app works with PHP config short_open_tag=off
authored
7 <?php if (!is_null($current_cluster_name)): ?><option value="<?php echo $index?>" <?php if ($cluster_helper->getClusterIndex() == $index): echo 'selected="selected"'; endif; ?>><?php echo $current_cluster_name?></option><?php endif; ?>
276c67e @sebgiroux Multi clusters support
authored
8 <?php endforeach; ?>
9 </select>
33595c2 @sebgiroux Make the app works with PHP config short_open_tag=off
authored
10 <?php endif; ?>
276c67e @sebgiroux Multi clusters support
authored
11 </div>
12
30db2a9 @sebgiroux Start using bootstrap, makes everything looks a million time better
authored
13 <div id="cluster_info" class="well">
33595c2 @sebgiroux Make the app works with PHP config short_open_tag=off
authored
14 <h3>Cluster Name: <?php echo $cluster_name; ?></h3>
a942d8f @wajamjenkins First commit
wajamjenkins authored
15
33595c2 @sebgiroux Make the app works with PHP config short_open_tag=off
authored
16 Cluster Partitioner: <?php echo $partitioner; ?><br />
17 Cluster Snitch: <?php echo $snitch; ?><br />
18 Thrift API Version: <?php echo $thrift_api_version; ?><br />
d71637f @sebgiroux Fix some code styling after merging pull request
authored
19 Schema Versions: <br />
30db2a9 @sebgiroux Start using bootstrap, makes everything looks a million time better
authored
20 <table width="100%" class="cluster_status table table-bordered table-striped">
1ad7f8c @wildstray Per-node version and status.
wildstray authored
21 <?php
d71637f @sebgiroux Fix some code styling after merging pull request
authored
22 foreach ($schema_version as $version => $servers):
23 foreach ($servers as $server):
24 echo '<tr>';
25 if ($version == 'UNREACHABLE'):
30db2a9 @sebgiroux Start using bootstrap, makes everything looks a million time better
authored
26 echo '<td><span class="badge badge-important">&#215;</span></td><td>'.$server.'</td><td>'.$version.'</td>';
d71637f @sebgiroux Fix some code styling after merging pull request
authored
27 else:
30db2a9 @sebgiroux Start using bootstrap, makes everything looks a million time better
authored
28 echo '<td><span class="badge badge-success">&#10003;</span></td><td>'.$server.'</td><td>'.$version.'</td>';
d71637f @sebgiroux Fix some code styling after merging pull request
authored
29 endif;
30 echo '</tr>';
31 endforeach;
32 endforeach;
1ad7f8c @wildstray Per-node version and status.
wildstray authored
33 ?>
d71637f @sebgiroux Fix some code styling after merging pull request
authored
34 </table>
a942d8f @wajamjenkins First commit
wajamjenkins authored
35 </div>
36
33595c2 @sebgiroux Make the app works with PHP config short_open_tag=off
authored
37 <?php echo $success_message; ?>
38 <?php echo $error_message; ?>
a942d8f @wajamjenkins First commit
wajamjenkins authored
39
30db2a9 @sebgiroux Start using bootstrap, makes everything looks a million time better
authored
40 <a href="keyspace_action.php?action=create" class="btn btn-large btn-primary" style="color: #fff; text-decoration: none;">Create New Keyspace</a>
819dd80 @sebgiroux MUCH better actions menu\!
authored
41
1208120 @sebgiroux Added Increment/Decrement for counters in browse data section. Cleane…
authored
42 <h3>Keyspaces and Column Families</h3>
43 <ul id="keyspaces">
33595c2 @sebgiroux Make the app works with PHP config short_open_tag=off
authored
44 <?php
1208120 @sebgiroux Added Increment/Decrement for counters in browse data section. Cleane…
authored
45 $nb_ks = count($keyspaces_name);
46 for ($i = 0; $i < $nb_ks; $i++):
47 $keyspace_name = $keyspaces_name[$i];
48
49 echo '<li><a href="describe_keyspace.php?keyspace_name='.$keyspace_name.'">'.$keyspace_name.'</a>';
50 echo '<ul>';
112fb5d @sebgiroux Added some more stats in JMX page, will organize it better later
authored
51 $nb_cf = count($keyspaces_details[$i]['columnfamilies_name']);
1208120 @sebgiroux Added Increment/Decrement for counters in browse data section. Cleane…
authored
52 for ($j = 0; $j < $nb_cf; $j++):
112fb5d @sebgiroux Added some more stats in JMX page, will organize it better later
authored
53 $columnfamily_name = $keyspaces_details[$i]['columnfamilies_name'][$j];
1208120 @sebgiroux Added Increment/Decrement for counters in browse data section. Cleane…
authored
54 echo '<li><a href="describe_columnfamily.php?keyspace_name='.$keyspace_name.'&amp;columnfamily_name='.$columnfamily_name.'">'.$columnfamily_name.'</a></li>';
55 endfor;
56 echo '</ul>';
57 echo '</li>';
58 endfor;
59 ?>
60 </ul>
61
d929f80 @sebgiroux Added some JMX stats and graph
authored
62 <h3>JMX</h3>
63
64 <ul>
65 <li><a href="jmx.php">See Stats</a></li>
66 </ul>
a942d8f @wajamjenkins First commit
wajamjenkins authored
67
68
Something went wrong with that request. Please try again.