public ClusterHealthResponse getClusterHealth(String clusterName) {
Set<Node> nodeSet = nodesClusterMap.get(clusterName);
if (nodeSet != null) {
for (Node node : nodeSet) {
ClusterAdminClient client = node.client().admin().cluster();
ClusterHealthResponse response = client.prepareHealth().execute().actionGet();
return response;
}
}
return null;
}