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.Empty
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.tasks.BaseTasksResponse
NODE_FAILURES, TASK_FAILURES
Fields 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 TypeMethodDescriptionstatic ListTasksResponse
fromXContent
(XContentParser parser) Returns 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.protected static <T> ConstructingObjectParser<T,
Void> setupParser
(String name, TriFunction<List<TaskInfo>, List<TaskOperationFailure>, List<ElasticsearchException>, T> ctor) toString()
void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.tasks.BaseTasksResponse
equals, getNodeFailures, getTaskFailures, hashCode, rethrowFailures, toXContentCommon
Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRef
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.core.RefCounted
mustIncRef
-
Constructor Details
-
ListTasksResponse
public ListTasksResponse(List<TaskInfo> tasks, List<TaskOperationFailure> taskFailures, List<? extends ElasticsearchException> nodeFailures) -
ListTasksResponse
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classBaseTasksResponse
- Throws:
IOException
-
setupParser
protected static <T> ConstructingObjectParser<T,Void> setupParser(String name, TriFunction<List<TaskInfo>, List<TaskOperationFailure>, List<ElasticsearchException>, T> ctor) -
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 -
fromXContent
-
toString
-