Module org.elasticsearch.server
Class TransportNodesStatsAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<NodesRequest,NodesResponse>
org.elasticsearch.action.support.nodes.TransportNodesAction<NodesStatsRequest,NodesStatsResponse,TransportNodesStatsAction.NodeStatsRequest,NodeStats>
org.elasticsearch.action.admin.cluster.node.stats.TransportNodesStatsAction
public class TransportNodesStatsAction
extends TransportNodesAction<NodesStatsRequest,NodesStatsResponse,TransportNodesStatsAction.NodeStatsRequest,NodeStats>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.elasticsearch.action.support.nodes.TransportNodesAction
clusterService, transportNodeAction, transportService
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager
-
Constructor Summary
ConstructorsConstructorDescriptionTransportNodesStatsAction
(ThreadPool threadPool, ClusterService clusterService, TransportService transportService, NodeService nodeService, ActionFilters actionFilters) -
Method Summary
Modifier and TypeMethodDescriptionnewNodeRequest
(NodesStatsRequest request) protected NodeStats
newNodeResponse
(StreamInput in, DiscoveryNode node) protected NodesStatsResponse
newResponse
(NodesStatsRequest request, List<NodeStats> responses, List<FailedNodeException> failures) Create a newTransportNodesAction
.protected NodeStats
nodeOperation
(TransportNodesStatsAction.NodeStatsRequest nodeStatsRequest, Task task) Methods inherited from class org.elasticsearch.action.support.nodes.TransportNodesAction
doExecute, newResponseAsync, resolveRequest
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, localOnly
-
Field Details
-
TYPE
-
-
Constructor Details
-
TransportNodesStatsAction
@Inject public TransportNodesStatsAction(ThreadPool threadPool, ClusterService clusterService, TransportService transportService, NodeService nodeService, ActionFilters actionFilters)
-
-
Method Details
-
newResponse
protected NodesStatsResponse newResponse(NodesStatsRequest request, List<NodeStats> responses, List<FailedNodeException> failures) Description copied from class:TransportNodesAction
Create a newTransportNodesAction
. This method is executed onTransportNodesAction.finalExecutor
.- Specified by:
newResponse
in classTransportNodesAction<NodesStatsRequest,
NodesStatsResponse, TransportNodesStatsAction.NodeStatsRequest, NodeStats> - Parameters:
request
- The request whose response we are constructing.TransportNodesAction
may have already released all its references to this object before calling this method, so it's up to individual implementations to retain their own reference to the request if still needed here.responses
- All successful node-level responses.failures
- All node-level failures.- Returns:
- Never
null
.
-
newNodeRequest
-
newNodeResponse
- Specified by:
newNodeResponse
in classTransportNodesAction<NodesStatsRequest,
NodesStatsResponse, TransportNodesStatsAction.NodeStatsRequest, NodeStats> - Throws:
IOException
-
nodeOperation
protected NodeStats nodeOperation(TransportNodesStatsAction.NodeStatsRequest nodeStatsRequest, Task task)
-