Class TransportGetTaskAction
- java.lang.Object
-
- org.elasticsearch.common.component.AbstractComponent
-
- org.elasticsearch.action.support.TransportAction<Request,Response>
-
- org.elasticsearch.action.support.HandledTransportAction<GetTaskRequest,GetTaskResponse>
-
- org.elasticsearch.action.admin.cluster.node.tasks.get.TransportGetTaskAction
-
public class TransportGetTaskAction extends HandledTransportAction<GetTaskRequest,GetTaskResponse>
Action 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, indexNameExpressionResolver, taskManager, threadPool
-
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
logger
-
-
Constructor Summary
Constructors Constructor Description TransportGetTaskAction(Settings settings, ThreadPool threadPool, TransportService transportService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, ClusterService clusterService, Client client, NamedXContentRegistry xContentRegistry)
-
Method Summary
Modifier and Type Method Description protected void
doExecute(GetTaskRequest request, ActionListener<GetTaskResponse> listener)
protected void
doExecute(Task thisTask, GetTaskRequest request, ActionListener<GetTaskResponse> listener)
-
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute, execute
-
-
-
-
Constructor Detail
-
TransportGetTaskAction
@Inject public TransportGetTaskAction(Settings settings, ThreadPool threadPool, TransportService transportService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, ClusterService clusterService, Client client, NamedXContentRegistry xContentRegistry)
-
-
Method Detail
-
doExecute
protected void doExecute(GetTaskRequest request, ActionListener<GetTaskResponse> listener)
- Specified by:
doExecute
in classTransportAction<GetTaskRequest,GetTaskResponse>
-
doExecute
protected void doExecute(Task thisTask, GetTaskRequest request, ActionListener<GetTaskResponse> listener)
- Overrides:
doExecute
in classTransportAction<GetTaskRequest,GetTaskResponse>
-
-