Beispiel #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);
   }
 }
Beispiel #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);
   }
 }