Class TransportClusterStatsAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<NodesRequest,NodesResponse>
org.elasticsearch.action.support.nodes.TransportNodesAction<ClusterStatsRequest,ClusterStatsResponse,TransportClusterStatsAction.ClusterStatsNodeRequest,ClusterStatsNodeResponse>
org.elasticsearch.action.admin.cluster.stats.TransportClusterStatsAction
public class TransportClusterStatsAction
extends TransportNodesAction<ClusterStatsRequest,ClusterStatsResponse,TransportClusterStatsAction.ClusterStatsNodeRequest,ClusterStatsNodeResponse>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.nodes.TransportNodesAction
clusterService, nodeResponseClass, threadPool, transportNodeAction, transportService
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, localConnection, logger, taskManager
-
Constructor Summary
ConstructorDescriptionTransportClusterStatsAction(ThreadPool threadPool, ClusterService clusterService, TransportService transportService, NodeService nodeService, IndicesService indicesService, ActionFilters actionFilters)
-
Method Summary
Modifier and TypeMethodDescriptionnewNodeRequest(ClusterStatsRequest request)
protected ClusterStatsNodeResponse
protected ClusterStatsResponse
newResponse(ClusterStatsRequest request, List<ClusterStatsNodeResponse> responses, List<FailedNodeException> failures)
Create a newTransportNodesAction
(multi-node response).protected void
newResponseAsync(Task task, ClusterStatsRequest request, List<ClusterStatsNodeResponse> responses, List<FailedNodeException> failures, ActionListener<ClusterStatsResponse> listener)
Create a newTransportNodesAction
, possibly asynchronously.protected ClusterStatsNodeResponse
protected ClusterStatsNodeResponse
nodeOperation(TransportClusterStatsAction.ClusterStatsNodeRequest nodeRequest, Task task)
Methods inherited from class org.elasticsearch.action.support.nodes.TransportNodesAction
doExecute, getTransportNodeAction, resolveRequest
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
Constructor Details
-
TransportClusterStatsAction
@Inject public TransportClusterStatsAction(ThreadPool threadPool, ClusterService clusterService, TransportService transportService, NodeService nodeService, IndicesService indicesService, ActionFilters actionFilters)
-
-
Method Details
-
newResponseAsync
protected void newResponseAsync(Task task, ClusterStatsRequest request, List<ClusterStatsNodeResponse> responses, List<FailedNodeException> failures, ActionListener<ClusterStatsResponse> listener)Description copied from class:TransportNodesAction
Create a newTransportNodesAction
, possibly asynchronously. The default implementation is synchronous and callsTransportNodesAction.newResponse(BaseNodesRequest, List, List)
-
newResponse
protected ClusterStatsResponse newResponse(ClusterStatsRequest request, List<ClusterStatsNodeResponse> responses, List<FailedNodeException> failures)Description copied from class:TransportNodesAction
Create a newTransportNodesAction
(multi-node response).- Specified by:
newResponse
in classTransportNodesAction<ClusterStatsRequest,ClusterStatsResponse,TransportClusterStatsAction.ClusterStatsNodeRequest,ClusterStatsNodeResponse>
- Parameters:
request
- The associated request.responses
- All successful node-level responses.failures
- All node-level failures.- Returns:
- Never
null
.
-
newNodeRequest
protected TransportClusterStatsAction.ClusterStatsNodeRequest newNodeRequest(ClusterStatsRequest request) -
newNodeResponse
-
nodeOperation
protected ClusterStatsNodeResponse nodeOperation(TransportClusterStatsAction.ClusterStatsNodeRequest nodeRequest) -
nodeOperation
protected ClusterStatsNodeResponse nodeOperation(TransportClusterStatsAction.ClusterStatsNodeRequest nodeRequest, Task task)
-