Module org.elasticsearch.server
Class ListTasksResponse
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.action.ActionResponse
org.elasticsearch.action.support.tasks.BaseTasksResponse
org.elasticsearch.action.admin.cluster.node.tasks.list.ListTasksResponse
- All Implemented Interfaces:
Writeable,RefCounted
Returns the list of tasks currently running on the nodes
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.action.ActionResponse
ActionResponse.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from class org.elasticsearch.action.support.tasks.BaseTasksResponse
NODE_FAILURES, TASK_FAILURESFields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
ConstructorsConstructorDescriptionListTasksResponse(List<TaskInfo> tasks, List<TaskOperationFailure> taskFailures, List<? extends ElasticsearchException> nodeFailures) -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of tasks by nodeGet the tasks found by this request grouped by parent tasks.getTasks()Get the tasks found by this request.groupedByNode(Supplier<DiscoveryNodes> nodesInCluster) Convert this task response to XContent grouping by executing nodes.Presents a flat list of tasksConvert this response to XContent grouping by parent tasks.toString()voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.tasks.BaseTasksResponse
equals, getNodeFailures, getTaskFailures, hashCode, rethrowFailures, toXContentCommonMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, tryIncRefMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
mustIncRef
-
Field Details
-
TASKS
- See Also:
-
-
Constructor Details
-
ListTasksResponse
public ListTasksResponse(List<TaskInfo> tasks, List<TaskOperationFailure> taskFailures, List<? extends ElasticsearchException> nodeFailures)
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classBaseTasksResponse- Throws:
IOException
-
getPerNodeTasks
Returns the list of tasks by node -
getTaskGroups
Get the tasks found by this request grouped by parent tasks. -
getTasks
Get the tasks found by this request. -
groupedByNode
Convert this task response to XContent grouping by executing nodes. -
groupedByParent
Convert this response to XContent grouping by parent tasks. -
groupedByNone
Presents a flat list of tasks -
toString
-