Class BaseTasksResponse
- java.lang.Object
-
- org.elasticsearch.transport.TransportMessage
-
- org.elasticsearch.transport.TransportResponse
-
- org.elasticsearch.action.ActionResponse
-
- org.elasticsearch.action.support.tasks.BaseTasksResponse
-
- All Implemented Interfaces:
Streamable,Writeable
- Direct Known Subclasses:
ListTasksResponse
public class BaseTasksResponse extends ActionResponse
Base class for responses of task-related operations
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportResponse
TransportResponse.Empty
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringNODE_FAILURESprotected static java.lang.StringTASK_FAILURES
-
Constructor Summary
Constructors Constructor Description BaseTasksResponse(java.util.List<TaskOperationFailure> taskFailures, java.util.List<? extends ElasticsearchException> nodeFailures)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.util.List<ElasticsearchException>getNodeFailures()The list of node failures exception.java.util.List<TaskOperationFailure>getTaskFailures()The list of task failures exception.inthashCode()voidreadFrom(StreamInput in)Set this object's fields from a StreamInput.voidrethrowFailures(java.lang.String operationName)Rethrow task failures if there are any.protected voidtoXContentCommon(XContentBuilder builder, ToXContent.Params params)voidwriteTo(StreamOutput out)Write this object's fields to a StreamOutput.-
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
-
-
-
Field Detail
-
TASK_FAILURES
protected static final java.lang.String TASK_FAILURES
- See Also:
- Constant Field Values
-
NODE_FAILURES
protected static final java.lang.String NODE_FAILURES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BaseTasksResponse
public BaseTasksResponse(java.util.List<TaskOperationFailure> taskFailures, java.util.List<? extends ElasticsearchException> nodeFailures)
-
-
Method Detail
-
getTaskFailures
public java.util.List<TaskOperationFailure> getTaskFailures()
The list of task failures exception.
-
getNodeFailures
public java.util.List<ElasticsearchException> getNodeFailures()
The list of node failures exception.
-
rethrowFailures
public void rethrowFailures(java.lang.String operationName)
Rethrow task failures if there are any.
-
readFrom
public void readFrom(StreamInput in) throws java.io.IOException
Description copied from interface:StreamableSet this object's fields from a StreamInput.- Specified by:
readFromin interfaceStreamable- Overrides:
readFromin classActionResponse- Throws:
java.io.IOException
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:StreamableWrite this object's fields to a StreamOutput.- Specified by:
writeToin interfaceStreamable- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classActionResponse- Throws:
java.io.IOException
-
toXContentCommon
protected void toXContentCommon(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-