return data;
}
public static List<Map<String, Object>> getClusterStatus() throws IOException {
ZookeeperClusterStatus zk = Config.getZookeeper();
List<Map<String, Object>> data = new ArrayList<Map<String, Object>>();
List<String> clusters = zk.getClusterList(false);
for (String cluster : clusters) {
Map<String, Object> clusterObj = new HashMap<String, Object>();
clusterObj.put("name", cluster);
List<String> offlineShardServers = zk.getOfflineShardServers(false, cluster);
List<String> onlineShardServers = zk.getOnlineShardServers(false, cluster);
clusterObj.put("online", onlineShardServers);
clusterObj.put("offline", offlineShardServers);
data.add(clusterObj);