public static NodeStats getNodeStats(String nodeId) { try { for (NodeStats node : getSysClient() .health() .getStats(Lists.newArrayList(nodeId), null, null) .getNodeStatsList()) { if (node.getNodeId().equals(nodeId)) { return node; } } return null; } catch (ServiceErrorException e) { if (e.getHttpCode() == 400) { return null; } throw e; } }