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.core.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
Fields -
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(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRef
-
Field Details
-
TASK_FAILURES
- See Also:
- Constant Field Values
-
NODE_FAILURES
- See Also:
- Constant Field Values
-
-
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(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-