Ejemplo 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);
   }
 }
Ejemplo 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);
   }
 }