blob: afac3035c37e218fa7e52c711c22497fc7f14be9 [file] [log] [blame]
Felix Meschberger2247fd42010-02-17 09:12:34 +00001<script type="text/javascript" src="res/ui/vmstat.js"></script>
2<script type="text/javascript">
3// <![CDATA[
4var statData = ${startData};
5// ]]>
6</script>
7
8<!-- status line -->
9<p class="statline">${vmstat.running}</p>
10
11<table class="nicetable">
12 <thead>
13 <tr>
14 <th colspan="2">${vmstat.sl.title}</th>
15 </tr>
16 </thead>
17
18 <tr>
19 <td>${vmstat.sl.system}</td>
20 <td>
21 <form method="post" action="${pluginRoot}">
22 <div>
23 <input type="hidden" name="action" value="setStartLevel"/>
24 <input type="text" size="3" name="systemStartLevel" id="systemStartLevel" value="-1"/>
25 &nbsp;&nbsp;<input type="submit" name="Set Start Level" value="${change}"/>
26 </div>
27 </form>
28 </td>
29 </tr>
30 <tr>
31 <td>${vmstat.sl.bundle}</td>
32 <td>
33 <form method="post" action="${pluginRoot}">
34 <div>
35 <input type="hidden" name="action" value="setStartLevel"/>
36 <input type="text" size="3" name="bundleStartLevel" id="bundleStartLevel" value="-1"/>
37 &nbsp;&nbsp;<input type="submit" name="Set Start Level" value="${change}"/>
38 </div>
39 </form>
40 </td>
41 </tr>
42
43 <tr><td colspan="2">&nbsp;</td></tr>
44 <tr>
45 <th colspan="2">${vmstat.info.title}</th>
46 </tr>
47 <tr>
48 <td>${vmstat.lastStarted}</td>
49 <td id="lastStarted">---</td>
50 </tr>
51 <tr>
52 <td>${vmstat.framework}</td>
53 <td>
54 <form id="shutdownform" method="post" action="${pluginRoot}">
55 <div>
56 <input type="hidden" name="shutdown_timer" value="shutdown_timer" />
57 <!-- NOTE: don't translate value="Restart" & value="Stop" - will break the operation type -->
58 <input class="ui-state-error" type="submit" name="shutdown_type" value="Restart" onclick="return confirm('This will stop and restart the framework and all bundles. Please confirm to continue.');" />
59 <input class="ui-state-error" type="submit" name="shutdown_type" value="Stop" onclick="return confirm('This will stop the framework and all bundles. Please confirm to continue.')" />
60 </div>
61 </form>
62 <form id="shutdownform2" method="post" action="${pluginRoot}">
63 <div>
64 <input type="hidden" name="shutdown_type" id="shutdown_type" value="" />
65 <input class="ui-state-error" type="button" value="${abort}" onclick="abort('${pluginRoot}')" />
66 ${vmstat.shutdown.in} <span id='countdowncell'>&nbsp;</span>
67 <script type="text/javascript">if(statData.shutdownTimer) shutdown(3, 'shutdownform2', 'countdowncell');</script>
68 </div>
69 </form>
70 </td>
71 </tr>
72
73 <tr><td colspan="2">&nbsp;</td></tr>
74 <tr>
75 <th colspan="2">${vmstat.java.title}</th>
76 </tr>
77 <tr>
78 <td>${vmstat.java.runtime}</td>
79 <td id="runtime">-</td>
80 </tr>
81 <tr>
82 <td>${vmstat.java.jvm}</td>
83 <td id="jvm">-</td>
84 </tr>
Felix Meschbergerc2a72c42010-04-20 13:37:50 +000085 <tr>
86 <td>${vmstat.processors}</td>
87 <td id="processors">-</td>
88 </tr>
Felix Meschberger2247fd42010-02-17 09:12:34 +000089 <tr>
90 <td>${vmstat.mem.total}</td>
91 <td id="mem_total">-</td>
92 </tr>
93 <tr>
94 <td>${vmstat.mem.used}</td>
95 <td id="mem_used">-</td>
96 </tr>
97 <tr>
98 <td>${vmstat.mem.free}</td>
99 <td id="mem_free">-</td>
100 </tr>
101 <tr>
102 <td>${vmstat.gc.title}</td>
103 <td>
104 <form method="post" action="${pluginRoot}">
105 <div>
106 <input type="hidden" name="action" value="gc" />
107 <input class="submit" type="submit" name="Collect Garbage" value="${vmstat.gc.button}" />
108 </div>
109 </form>
110 </td>
111 </tr>
112</table>