Package org.graylog2.restclient.models

Examples of org.graylog2.restclient.models.Node.jvm()


    public Result heap(String nodeId) {
        try {
            Map<String, Object> result = Maps.newHashMap();
            Node node = nodeService.loadNode(nodeId);

            return ok(Json.toJson(jvmMap(node.jvm(), node.getBufferInfo())));
        } catch (NodeService.NodeNotFoundException e) {
            return status(404, "node not found");
        }
    }
View Full Code Here


    }

    public Result radioHeap(String radioId) {
        try {
            Radio radio = nodeService.loadRadio(radioId);
            return ok(Json.toJson(jvmMap(radio.jvm(), radio.getBuffers())));
        } catch (NodeService.NodeNotFoundException e) {
            return status(404, "radio not found");
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.