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.String
NODE_FAILURES
protected static java.lang.String
TASK_FAILURES
-
Constructor Summary
Constructors Constructor Description BaseTasksResponse(java.util.List<TaskOperationFailure> taskFailures, java.util.List<? extends ElasticsearchException> nodeFailures)
-
Method Summary
Modifier and Type Method Description boolean
equals(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.int
hashCode()
void
readFrom(StreamInput in)
Set this object's fields from a StreamInput.void
rethrowFailures(java.lang.String operationName)
Rethrow task failures if there are any.protected void
toXContentCommon(XContentBuilder builder, ToXContent.Params params)
void
writeTo(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:Streamable
Set this object's fields from a StreamInput.- Specified by:
readFrom
in interfaceStreamable
- Overrides:
readFrom
in classActionResponse
- Throws:
java.io.IOException
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:Streamable
Write this object's fields to a StreamOutput.- Specified by:
writeTo
in interfaceStreamable
- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in 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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-