Felix Meschberger | dcd9515 | 2010-06-25 08:10:24 +0000 | [diff] [blame] | 1 | <script type="text/javascript" src="${appRoot}/res/ui/vmstat.js"></script> |
Felix Meschberger | 2247fd4 | 2010-02-17 09:12:34 +0000 | [diff] [blame] | 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> |
Felix Meschberger | ab926c9 | 2011-07-07 06:21:46 +0000 | [diff] [blame^] | 52 | <td>${vmstat.upTime}</td> |
| 53 | <td id="upTime">---</td> |
| 54 | </tr> |
| 55 | <tr> |
Felix Meschberger | 2247fd4 | 2010-02-17 09:12:34 +0000 | [diff] [blame] | 56 | <td>${vmstat.framework}</td> |
| 57 | <td> |
| 58 | <form id="shutdownform" method="post" action="${pluginRoot}"> |
| 59 | <div> |
| 60 | <input type="hidden" name="shutdown_timer" value="shutdown_timer" /> |
| 61 | <!-- NOTE: don't translate value="Restart" & value="Stop" - will break the operation type --> |
| 62 | <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.');" /> |
| 63 | <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.')" /> |
| 64 | </div> |
| 65 | </form> |
| 66 | <form id="shutdownform2" method="post" action="${pluginRoot}"> |
| 67 | <div> |
| 68 | <input type="hidden" name="shutdown_type" id="shutdown_type" value="" /> |
| 69 | <input class="ui-state-error" type="button" value="${abort}" onclick="abort('${pluginRoot}')" /> |
| 70 | ${vmstat.shutdown.in} <span id='countdowncell'> </span> |
| 71 | <script type="text/javascript">if(statData.shutdownTimer) shutdown(3, 'shutdownform2', 'countdowncell');</script> |
| 72 | </div> |
| 73 | </form> |
| 74 | </td> |
| 75 | </tr> |
| 76 | |
| 77 | <tr><td colspan="2"> </td></tr> |
| 78 | <tr> |
| 79 | <th colspan="2">${vmstat.java.title}</th> |
| 80 | </tr> |
| 81 | <tr> |
| 82 | <td>${vmstat.java.runtime}</td> |
| 83 | <td id="runtime">-</td> |
| 84 | </tr> |
| 85 | <tr> |
| 86 | <td>${vmstat.java.jvm}</td> |
| 87 | <td id="jvm">-</td> |
| 88 | </tr> |
Felix Meschberger | c2a72c4 | 2010-04-20 13:37:50 +0000 | [diff] [blame] | 89 | <tr> |
| 90 | <td>${vmstat.processors}</td> |
| 91 | <td id="processors">-</td> |
| 92 | </tr> |
Felix Meschberger | 2247fd4 | 2010-02-17 09:12:34 +0000 | [diff] [blame] | 93 | <tr> |
| 94 | <td>${vmstat.mem.total}</td> |
| 95 | <td id="mem_total">-</td> |
| 96 | </tr> |
| 97 | <tr> |
| 98 | <td>${vmstat.mem.used}</td> |
| 99 | <td id="mem_used">-</td> |
| 100 | </tr> |
| 101 | <tr> |
| 102 | <td>${vmstat.mem.free}</td> |
| 103 | <td id="mem_free">-</td> |
| 104 | </tr> |
| 105 | <tr> |
| 106 | <td>${vmstat.gc.title}</td> |
| 107 | <td> |
| 108 | <form method="post" action="${pluginRoot}"> |
| 109 | <div> |
| 110 | <input type="hidden" name="action" value="gc" /> |
| 111 | <input class="submit" type="submit" name="Collect Garbage" value="${vmstat.gc.button}" /> |
| 112 | </div> |
| 113 | </form> |
| 114 | </td> |
| 115 | </tr> |
| 116 | </table> |