Module org.elasticsearch.server
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,RefCounted
- Direct Known Subclasses:
ListTasksResponse
Base class for responses of task-related operations
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.action.ActionResponse
ActionResponse.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
ConstructorsConstructorDescriptionBaseTasksResponse(List<TaskOperationFailure> taskFailures, List<? extends ElasticsearchException> nodeFailures) -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe list of node failures exception.The list of task failures exception.inthashCode()voidrethrowFailures(String operationName) Rethrow task failures if there are any.protected voidtoXContentCommon(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
mustIncRef
-
Field Details
-
TASK_FAILURES
- See Also:
-
NODE_FAILURES
- See Also:
-
-
Constructor Details
-
BaseTasksResponse
public BaseTasksResponse(List<TaskOperationFailure> taskFailures, List<? extends ElasticsearchException> nodeFailures) -
BaseTasksResponse
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Throws:
IOException
-
getTaskFailures
The list of task failures exception. -
getNodeFailures
The list of node failures exception. -
rethrowFailures
Rethrow task failures if there are any. -
toXContentCommon
protected void toXContentCommon(XContentBuilder builder, ToXContent.Params params) throws IOException - Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-