Module org.elasticsearch.server
Class TransportGetSampleStatsAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<GetSampleStatsAction.Request,GetSampleStatsAction.Response>
org.elasticsearch.action.support.nodes.TransportNodesAction<GetSampleStatsAction.Request,GetSampleStatsAction.Response,GetSampleStatsAction.NodeRequest,GetSampleStatsAction.NodeResponse,Void>
org.elasticsearch.action.admin.indices.sampling.TransportGetSampleStatsAction
public class TransportGetSampleStatsAction
extends TransportNodesAction<GetSampleStatsAction.Request,GetSampleStatsAction.Response,GetSampleStatsAction.NodeRequest,GetSampleStatsAction.NodeResponse,Void>
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.nodes.TransportNodesAction
clusterService, transportNodeAction, transportServiceFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionTransportGetSampleStatsAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, SamplingService samplingService, ProjectResolver projectResolver, IndexNameExpressionResolver indexNameExpressionResolver) -
Method Summary
Modifier and TypeMethodDescriptionprotected VoidcreateActionContext(Task task, GetSampleStatsAction.Request request) Create an (optional)TransportNodesAction: called when starting to execute this action, and the result passed toTransportNodesAction.newResponseAsync(org.elasticsearch.tasks.Task, NodesRequest, ActionContext, java.util.List<NodeResponse>, java.util.List<org.elasticsearch.action.FailedNodeException>, org.elasticsearch.action.ActionListener<NodesResponse>)on completion.protected GetSampleStatsAction.NodeRequestprotected GetSampleStatsAction.NodeResponsenewNodeResponse(StreamInput in, DiscoveryNode node) protected GetSampleStatsAction.ResponsenewResponse(GetSampleStatsAction.Request request, List<GetSampleStatsAction.NodeResponse> nodeResponses, List<FailedNodeException> failures) Create a newTransportNodesAction.protected GetSampleStatsAction.NodeResponsenodeOperation(GetSampleStatsAction.NodeRequest request, Task task) Implements the request recipient logic.Methods inherited from class org.elasticsearch.action.support.nodes.TransportNodesAction
doExecute, newResponseAsync, nodeOperationAsync, resolveRequestMethods inherited from class org.elasticsearch.action.support.TransportAction
execute, executeDirect, localOnly
-
Constructor Details
-
TransportGetSampleStatsAction
@Inject public TransportGetSampleStatsAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, SamplingService samplingService, ProjectResolver projectResolver, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Details
-
createActionContext
Description copied from class:TransportNodesActionCreate an (optional)TransportNodesAction: called when starting to execute this action, and the result passed toTransportNodesAction.newResponseAsync(org.elasticsearch.tasks.Task, NodesRequest, ActionContext, java.util.List<NodeResponse>, java.util.List<org.elasticsearch.action.FailedNodeException>, org.elasticsearch.action.ActionListener<NodesResponse>)on completion. NB runs on the transport worker thread, must not do anything expensive without dispatching to a different executor. -
newResponse
protected GetSampleStatsAction.Response newResponse(GetSampleStatsAction.Request request, List<GetSampleStatsAction.NodeResponse> nodeResponses, List<FailedNodeException> failures) Description copied from class:TransportNodesActionCreate a newTransportNodesAction. This method is executed onTransportNodesAction.finalExecutor.- Specified by:
newResponsein classTransportNodesAction<GetSampleStatsAction.Request,GetSampleStatsAction.Response, GetSampleStatsAction.NodeRequest, GetSampleStatsAction.NodeResponse, Void> - Parameters:
request- The request whose response we are constructing.TransportNodesActionmay 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.nodeResponses- All successful node-level responses.failures- All node-level failures.- Returns:
- Never
null.
-
newNodeRequest
-
newNodeResponse
protected GetSampleStatsAction.NodeResponse newNodeResponse(StreamInput in, DiscoveryNode node) throws IOException -
nodeOperation
protected GetSampleStatsAction.NodeResponse nodeOperation(GetSampleStatsAction.NodeRequest request, Task task) Description copied from class:TransportNodesActionImplements the request recipient logic. If access to the request listener is needed, overrideTransportNodesAction.nodeOperationAsync(TransportRequest, Task, ActionListener).
-