public class ListTasksResponse extends BaseTasksResponse implements ToXContentObject
TransportResponse.Empty
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
ListTasksResponse() |
ListTasksResponse(java.util.List<TaskInfo> tasks,
java.util.List<TaskOperationFailure> taskFailures,
java.util.List<? extends FailedNodeException> nodeFailures) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.util.List<TaskInfo>> |
getPerNodeTasks()
Returns the list of tasks by node
|
java.util.List<TaskGroup> |
getTaskGroups()
Get the tasks found by this request grouped by parent tasks.
|
java.util.List<TaskInfo> |
getTasks()
Get the tasks found by this request.
|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
java.lang.String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
XContentBuilder |
toXContentGroupedByNode(XContentBuilder builder,
ToXContent.Params params,
DiscoveryNodes discoveryNodes)
Convert this task response to XContent grouping by executing nodes.
|
XContentBuilder |
toXContentGroupedByParents(XContentBuilder builder,
ToXContent.Params params)
Convert this response to XContent grouping by parent tasks.
|
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
getNodeFailures, getTaskFailures, rethrowFailures
remoteAddress, remoteAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isFragment
public ListTasksResponse()
public ListTasksResponse(java.util.List<TaskInfo> tasks, java.util.List<TaskOperationFailure> taskFailures, java.util.List<? extends FailedNodeException> nodeFailures)
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class BaseTasksResponse
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class BaseTasksResponse
java.io.IOException
public java.util.Map<java.lang.String,java.util.List<TaskInfo>> getPerNodeTasks()
public java.util.List<TaskGroup> getTaskGroups()
public java.util.List<TaskInfo> getTasks()
public XContentBuilder toXContentGroupedByNode(XContentBuilder builder, ToXContent.Params params, DiscoveryNodes discoveryNodes) throws java.io.IOException
java.io.IOException
public XContentBuilder toXContentGroupedByParents(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object