Class TransportListTasksAction
- java.lang.Object
-
- org.elasticsearch.common.component.AbstractComponent
-
- 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>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.action.support.HandledTransportAction
HandledTransportAction.ChannelActionListener<Response extends TransportResponse,Request extends TransportRequest>
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.action.support.tasks.TransportTasksAction
clusterService, requestSupplier, responseSupplier, transportNodeAction, transportService
-
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, indexNameExpressionResolver, taskManager, threadPool
-
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
deprecationLogger, logger, settings
-
-
Constructor Summary
Constructors Constructor Description TransportListTasksAction(Settings settings, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ListTasksResponse
newResponse(ListTasksRequest request, java.util.List<TaskInfo> tasks, java.util.List<TaskOperationFailure> taskOperationFailures, java.util.List<FailedNodeException> failedNodeExceptions)
protected void
processTasks(ListTasksRequest request, java.util.function.Consumer<Task> operation)
protected TaskInfo
readTaskResponse(StreamInput in)
protected void
taskOperation(ListTasksRequest request, Task task, ActionListener<TaskInfo> listener)
Perform the required operation on the task.static long
waitForCompletionTimeout(TimeValue timeout)
-
Methods inherited from class org.elasticsearch.action.support.tasks.TransportTasksAction
doExecute, doExecute, filterNodeIds, newResponse, resolveNodes, transportCompress
-
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute, execute
-
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
nodeName
-
-
-
-
Constructor Detail
-
TransportListTasksAction
@Inject public TransportListTasksAction(Settings settings, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Detail
-
waitForCompletionTimeout
public static long waitForCompletionTimeout(TimeValue timeout)
-
newResponse
protected ListTasksResponse newResponse(ListTasksRequest request, java.util.List<TaskInfo> tasks, java.util.List<TaskOperationFailure> taskOperationFailures, java.util.List<FailedNodeException> failedNodeExceptions)
- Specified by:
newResponse
in classTransportTasksAction<Task,ListTasksRequest,ListTasksResponse,TaskInfo>
-
readTaskResponse
protected TaskInfo readTaskResponse(StreamInput in) throws java.io.IOException
- Specified by:
readTaskResponse
in classTransportTasksAction<Task,ListTasksRequest,ListTasksResponse,TaskInfo>
- Throws:
java.io.IOException
-
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
protected void processTasks(ListTasksRequest request, java.util.function.Consumer<Task> operation)
- Overrides:
processTasks
in classTransportTasksAction<Task,ListTasksRequest,ListTasksResponse,TaskInfo>
-
-