return;
}
List<String> tableList = _clusterStatus.getTableList(false);
HashMap<String, Map<String, String>> newLayout = new HashMap<String, Map<String, String>>();
for (String table : tableList) {
DistributedLayoutManager layoutManager = new DistributedLayoutManager();
String cluster = _clusterStatus.getCluster(false, table);
if (cluster == null) {
continue;
}
List<String> shardServerList = _clusterStatus.getShardServerList(cluster);
List<String> offlineShardServers = _clusterStatus.getOfflineShardServers(false, cluster);
List<String> shardList = getShardList(cluster, table);
layoutManager.setNodes(shardServerList);
layoutManager.setNodesOffline(offlineShardServers);
layoutManager.setShards(shardList);
layoutManager.init();
Map<String, String> layout = layoutManager.getLayout();
newLayout.put(table, layout);
}
_shardServerLayout.set(newLayout);
}