use of org.graylog2.rest.models.system.cluster.responses.NodeSummary in project graylog2-server by Graylog2.
the class ClusterResource method nodes.
@GET
@Timed
@Path("/nodes")
@ApiOperation(value = "List all active nodes in this cluster.")
public NodeSummaryList nodes() {
final Map<String, Node> nodes = nodeService.allActive(Node.Type.SERVER);
final List<NodeSummary> nodeList = new ArrayList<>(nodes.size());
for (Node node : nodes.values()) {
nodeList.add(nodeSummary(node));
}
return NodeSummaryList.create(nodeList);
}
Aggregations