Class TransportListTasksAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<TasksRequest,TasksResponse>
org.elasticsearch.action.support.tasks.TransportTasksAction<Task,ListTasksRequest,ListTasksResponse,TaskInfo>
org.elasticsearch.action.admin.cluster.node.tasks.list.TransportListTasksAction
public class TransportListTasksAction
extends TransportTasksAction<Task,ListTasksRequest,ListTasksResponse,TaskInfo>
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.tasks.TransportTasksAction
clusterService, requestReader, responseReader, responsesReader, transportNodeAction, transportService
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, localConnection, logger, taskManager
-
Constructor Summary
ConstructorDescriptionTransportListTasksAction(ClusterService clusterService, TransportService transportService, ActionFilters actionFilters)
-
Method Summary
Modifier and TypeMethodDescriptionprotected ListTasksResponse
newResponse(ListTasksRequest request, List<TaskInfo> tasks, List<TaskOperationFailure> taskOperationFailures, List<FailedNodeException> failedNodeExceptions)
protected void
processTasks(ListTasksRequest request, Consumer<Task> operation)
protected void
taskOperation(ListTasksRequest request, Task task, ActionListener<TaskInfo> listener)
Perform the required operation on the task.static long
waitForCompletionTimeout(org.elasticsearch.core.TimeValue timeout)
Methods inherited from class org.elasticsearch.action.support.tasks.TransportTasksAction
doExecute, filterNodeIds, newResponse, resolveNodes
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
Constructor Details
-
TransportListTasksAction
@Inject public TransportListTasksAction(ClusterService clusterService, TransportService transportService, ActionFilters actionFilters)
-
-
Method Details
-
waitForCompletionTimeout
public static long waitForCompletionTimeout(org.elasticsearch.core.TimeValue timeout) -
newResponse
protected ListTasksResponse newResponse(ListTasksRequest request, List<TaskInfo> tasks, List<TaskOperationFailure> taskOperationFailures, List<FailedNodeException> failedNodeExceptions)- Specified by:
newResponse
in classTransportTasksAction<Task,ListTasksRequest,ListTasksResponse,TaskInfo>
-
taskOperation
protected void taskOperation(ListTasksRequest request, Task task, ActionListener<TaskInfo> listener)Description copied from class:TransportTasksAction
Perform the required operation on the task. It is OK start an asynchronous operation or to throw an exception but not both.- Specified by:
taskOperation
in classTransportTasksAction<Task,ListTasksRequest,ListTasksResponse,TaskInfo>
-
processTasks
- Overrides:
processTasks
in classTransportTasksAction<Task,ListTasksRequest,ListTasksResponse,TaskInfo>
-