Exemplo n.º 1
0
 @RequestMapping(value = "os", method = RequestMethod.GET)
 public String os(@RequestParam String node) {
   try {
     XContentBuilder result = monitorService.os(node.toLowerCase());
     return result.string();
   } catch (IOException e) {
     throw new uContentException(e, HttpStatus.INTERNAL_SERVER_ERROR);
   }
 }
Exemplo n.º 2
0
 @RequestMapping(value = "nodes", method = RequestMethod.GET)
 public String nodes() {
   try {
     XContentBuilder result = monitorService.nodes();
     return result.string();
   } catch (IOException e) {
     throw new uContentException(e, HttpStatus.INTERNAL_SERVER_ERROR);
   }
 }