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,- ToXContent,- ToXContentObject
- Direct Known Subclasses:
- CancelTasksResponse
Returns the list of tasks currently running on the nodes
- 
Nested Class SummaryNested classes/interfaces inherited from class org.elasticsearch.action.ActionResponseActionResponse.EmptyNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContentToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFields inherited from class org.elasticsearch.action.support.tasks.BaseTasksResponseNODE_FAILURES, TASK_FAILURESFields inherited from interface org.elasticsearch.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructorsConstructorDescriptionListTasksResponse(List<TaskInfo> tasks, List<TaskOperationFailure> taskFailures, List<? extends ElasticsearchException> nodeFailures) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic ListTasksResponsefromXContent(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.protected static <T> ConstructingObjectParser<T,Void> setupParser(String name, TriFunction<List<TaskInfo>, List<TaskOperationFailure>, List<ElasticsearchException>, T> ctor) toString()toXContent(XContentBuilder builder, ToXContent.Params params) toXContentGroupedByNode(XContentBuilder builder, ToXContent.Params params, DiscoveryNodes discoveryNodes) Convert this task response to XContent grouping by executing nodes.toXContentGroupedByNone(XContentBuilder builder, ToXContent.Params params) Presents a flat list of taskstoXContentGroupedByParents(XContentBuilder builder, ToXContent.Params params) Convert this response to XContent grouping by parent tasks.voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.tasks.BaseTasksResponseequals, getNodeFailures, getTaskFailures, hashCode, rethrowFailures, toXContentCommonMethods inherited from class org.elasticsearch.transport.TransportMessagedecRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObjectisFragment
- 
Constructor Details- 
ListTasksResponsepublic ListTasksResponse(List<TaskInfo> tasks, List<TaskOperationFailure> taskFailures, List<? extends ElasticsearchException> nodeFailures) 
- 
ListTasksResponse- Throws:
- IOException
 
 
- 
- 
Method Details- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Overrides:
- writeToin class- BaseTasksResponse
- Throws:
- IOException
 
- 
setupParserprotected static <T> ConstructingObjectParser<T,Void> setupParser(String name, TriFunction<List<TaskInfo>, List<TaskOperationFailure>, List<ElasticsearchException>, T> ctor) 
- 
getPerNodeTasksReturns the list of tasks by node
- 
getTaskGroupsGet the tasks found by this request grouped by parent tasks.
- 
getTasksGet the tasks found by this request.
- 
toXContentGroupedByNodepublic XContentBuilder toXContentGroupedByNode(XContentBuilder builder, ToXContent.Params params, DiscoveryNodes discoveryNodes) throws IOException Convert this task response to XContent grouping by executing nodes.- Throws:
- IOException
 
- 
toXContentGroupedByParentspublic XContentBuilder toXContentGroupedByParents(XContentBuilder builder, ToXContent.Params params) throws IOException Convert this response to XContent grouping by parent tasks.- Throws:
- IOException
 
- 
toXContentGroupedByNonepublic XContentBuilder toXContentGroupedByNone(XContentBuilder builder, ToXContent.Params params) throws IOException Presents a flat list of tasks- Throws:
- IOException
 
- 
toXContentpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
- toXContentin interface- ToXContent
- Throws:
- IOException
 
- 
fromXContent
- 
toString
 
-