Logger.error(ClusterResource.class, "Error getting ES Client", e);
jsonNode.put("error", e.getMessage());
return responseResource.response( jsonNode.toString() );
}
ClusterHealthRequest clusterReq = new ClusterHealthRequest();
ActionFuture<ClusterHealthResponse> afClusterRes = client.cluster().health(clusterReq);
ClusterHealthResponse clusterRes = afClusterRes.actionGet();
jsonNode.put("clusterName", clusterRes.getClusterName());