@Override public NodesStatsResponse newResponse() { return new NodesStatsResponse(); }
@Override protected NodesStatsResponse newResponse(NodesStatsRequest request, List<NodeStats> responses, List<FailedNodeException> failures) { return new NodesStatsResponse(clusterService.getClusterName(), responses, failures); }
@Override public NodesStatsResponse newResponse() { return new NodesStatsResponse(); }
@Override public NodesStatsResponse newResponse() { return new NodesStatsResponse(); }
@Override public NodesStatsResponse newResponse() { return new NodesStatsResponse(); }
@Override public NodesStatsResponse newResponse() { return new NodesStatsResponse(); }
@Override protected NodesStatsResponse newResponse(NodesStatsRequest nodesInfoRequest, AtomicReferenceArray responses) { final List<NodeStats> nodeStats = new ArrayList<>(); for (int i = 0; i < responses.length(); i++) { Object resp = responses.get(i); if (resp instanceof NodeStats) { nodeStats.add((NodeStats) resp); } } return new NodesStatsResponse(clusterName, nodeStats.toArray(new NodeStats[nodeStats.size()])); }
@Override protected NodesStatsResponse newResponse(NodesStatsRequest request, List<NodeStats> responses, List<FailedNodeException> failures) { return new NodesStatsResponse(clusterService.getClusterName(), responses, failures); }
@Override protected NodesStatsResponse newResponse(NodesStatsRequest request, List<NodeStats> responses, List<FailedNodeException> failures) { return new NodesStatsResponse(clusterService.getClusterName(), responses, failures); }
@Override protected NodesStatsResponse newResponse(NodesStatsRequest request, List<NodeStats> responses, List<FailedNodeException> failures) { return new NodesStatsResponse(clusterService.getClusterName(), responses, failures); }
@Override public CountDownLatch updateNodeStats(final ActionListener<NodesStatsResponse> listener) { NodesStatsResponse response = new NodesStatsResponse(clusterName, Arrays.asList(stats), Collections.emptyList()); listener.onResponse(response); return new CountDownLatch(0); }