Felix Meschberger | fbdfa02 | 2010-02-17 09:12:34 +0000 | [diff] [blame] | 1 | <script type="text/javascript" src="res/ui/vmstat.js"></script> |
| 2 | <script type="text/javascript"> |
| 3 | // <![CDATA[ |
| 4 | var 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 | <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 | <input type="submit" name="Set Start Level" value="${change}"/> |
| 38 | </div> |
| 39 | </form> |
| 40 | </td> |
| 41 | </tr> |
| 42 | |
| 43 | <tr><td colspan="2"> </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'> </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"> </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> |
| 85 | <tr> |
| 86 | <td>${vmstat.mem.total}</td> |
| 87 | <td id="mem_total">-</td> |
| 88 | </tr> |
| 89 | <tr> |
| 90 | <td>${vmstat.mem.used}</td> |
| 91 | <td id="mem_used">-</td> |
| 92 | </tr> |
| 93 | <tr> |
| 94 | <td>${vmstat.mem.free}</td> |
| 95 | <td id="mem_free">-</td> |
| 96 | </tr> |
| 97 | <tr> |
| 98 | <td>${vmstat.gc.title}</td> |
| 99 | <td> |
| 100 | <form method="post" action="${pluginRoot}"> |
| 101 | <div> |
| 102 | <input type="hidden" name="action" value="gc" /> |
| 103 | <input class="submit" type="submit" name="Collect Garbage" value="${vmstat.gc.button}" /> |
| 104 | </div> |
| 105 | </form> |
| 106 | </td> |
| 107 | </tr> |
| 108 | </table> |