コード例 #1
0
 @RequestMapping("/status")
 public String status() throws Exception {
   StringBuilder res = new StringBuilder(navigation());
   for (ContainerStatus status : appMaster.status()) {
     res.append(status).append("<br/>");
   }
   return res.toString();
 }
コード例 #2
0
 @RequestMapping("/exit")
 public void exit() throws Exception {
   appMaster.stop();
   System.exit(0);
 }
コード例 #3
0
 @RequestMapping("/submit")
 public String submit() throws Exception {
   String containerId = appMaster.startNewContainer();
   return navigation() + "Container has been submitted. Id: " + containerId;
 }