Esempio n. 1
0
 @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();
 }
Esempio n. 2
0
 @Override
 public int getNumberOfNodes() {
   return clusterClient.getNodes().size();
 }