Class TransportNodesUsageAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<NodesRequest,NodesResponse>
org.elasticsearch.action.support.nodes.TransportNodesAction<NodesUsageRequest,NodesUsageResponse,TransportNodesUsageAction.NodeUsageRequest,NodeUsage>
org.elasticsearch.action.admin.cluster.node.usage.TransportNodesUsageAction
public class TransportNodesUsageAction
extends TransportNodesAction<NodesUsageRequest,NodesUsageResponse,TransportNodesUsageAction.NodeUsageRequest,NodeUsage>
-
Nested Class Summary
-
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
ConstructorDescriptionTransportNodesUsageAction
(ThreadPool threadPool, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, UsageService restUsageService, AggregationUsageService aggregationUsageService) -
Method Summary
Modifier and TypeMethodDescriptionnewNodeRequest
(NodesUsageRequest request) protected NodeUsage
newNodeResponse
(StreamInput in, DiscoveryNode node) protected NodesUsageResponse
newResponse
(NodesUsageRequest request, List<NodeUsage> responses, List<FailedNodeException> failures) Create a newTransportNodesAction
(multi-node response).protected NodeUsage
nodeOperation
(TransportNodesUsageAction.NodeUsageRequest nodeUsageRequest) Methods inherited from class org.elasticsearch.action.support.nodes.TransportNodesAction
doExecute, getTransportNodeAction, newResponseAsync, nodeOperation, resolveRequest
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
Constructor Details
-
TransportNodesUsageAction
@Inject public TransportNodesUsageAction(ThreadPool threadPool, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, UsageService restUsageService, AggregationUsageService aggregationUsageService)
-
-
Method Details
-
newResponse
protected NodesUsageResponse newResponse(NodesUsageRequest request, List<NodeUsage> responses, List<FailedNodeException> failures) Description copied from class:TransportNodesAction
Create a newTransportNodesAction
(multi-node response).- Specified by:
newResponse
in classTransportNodesAction<NodesUsageRequest,
NodesUsageResponse, TransportNodesUsageAction.NodeUsageRequest, NodeUsage> - Parameters:
request
- The associated request.responses
- All successful node-level responses.failures
- All node-level failures.- Returns:
- Never
null
.
-
newNodeRequest
-
newNodeResponse
- Specified by:
newNodeResponse
in classTransportNodesAction<NodesUsageRequest,
NodesUsageResponse, TransportNodesUsageAction.NodeUsageRequest, NodeUsage> - Throws:
IOException
-
nodeOperation
-