Class TransportGetTaskAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<GetTaskRequest,GetTaskResponse>
org.elasticsearch.action.admin.cluster.node.tasks.get.TransportGetTaskAction
ActionType to get a single task. If the task isn't running then it'll try to request the status from request index.
The general flow is:
- If this isn't being executed on the node to which the requested TaskId belongs then move to that node.
- Look up the task and return it if it exists
- If it doesn't then look up the task from the results index
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, localConnection, logger, taskManager
-
Constructor Summary
ConstructorDescriptionTransportGetTaskAction(ThreadPool threadPool, TransportService transportService, ActionFilters actionFilters, ClusterService clusterService, Client client, org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry)
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doExecute(Task thisTask, GetTaskRequest request, ActionListener<GetTaskResponse> listener)
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
Constructor Details
-
TransportGetTaskAction
@Inject public TransportGetTaskAction(ThreadPool threadPool, TransportService transportService, ActionFilters actionFilters, ClusterService clusterService, Client client, org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry)
-
-
Method Details
-
doExecute
protected void doExecute(Task thisTask, GetTaskRequest request, ActionListener<GetTaskResponse> listener)- Specified by:
doExecute
in classTransportAction<GetTaskRequest,GetTaskResponse>
-