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>
-
-
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 java.util.List<ElasticsearchException>getNodeFailures()The list of node failures exception.java.util.List<TaskOperationFailure>getTaskFailures()The list of task failures exception.voidreadFrom(StreamInput in)Set this object's fields from a StreamInput.voidrethrowFailures(java.lang.String operationName)Rethrow task failures if there are any.voidwriteTo(StreamOutput out)Write this object's fields to a StreamOutput.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.io.stream.Streamable
-
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
-
-
-
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
-
-