@Override public String getNodeStatistics() { StringBuilder str = new StringBuilder("Nodes:"); for (Node node : clusterClient.getNodes()) { str.append("[nodeId=" + node.getId() + ", partitions=[" + node.getPartitionIds() + "]],"); } return str.toString(); }