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:
Writeable
,org.elasticsearch.common.util.concurrent.RefCounted
- 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.action.ActionResponse
ActionResponse.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)
BaseTasksResponse(StreamInput in)
-
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
rethrowFailures(java.lang.String operationName)
Rethrow task failures if there are any.protected void
toXContentCommon(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
void
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, incRef, remoteAddress, remoteAddress, tryIncRef
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
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 Details
-
BaseTasksResponse
public BaseTasksResponse(java.util.List<TaskOperationFailure> taskFailures, java.util.List<? extends ElasticsearchException> nodeFailures) -
BaseTasksResponse
- Throws:
java.io.IOException
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Throws:
java.io.IOException
-
getTaskFailures
The list of task failures exception. -
getNodeFailures
The list of node failures exception. -
rethrowFailures
public void rethrowFailures(java.lang.String operationName)Rethrow task failures if there are any. -
toXContentCommon
protected void toXContentCommon(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.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
-