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 SummaryNested classes/interfaces inherited from class org.elasticsearch.action.ActionResponseActionResponse.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionBaseTasksResponse(List<TaskOperationFailure> taskFailures, List<? extends ElasticsearchException> nodeFailures) 
- 
Method SummaryModifier 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.TransportMessagedecRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRef
- 
Field Details- 
TASK_FAILURES- See Also:
 
- 
NODE_FAILURES- See Also:
 
 
- 
- 
Constructor Details- 
BaseTasksResponsepublic BaseTasksResponse(List<TaskOperationFailure> taskFailures, List<? extends ElasticsearchException> nodeFailures) 
- 
BaseTasksResponse- Throws:
- IOException
 
 
- 
- 
Method Details- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Throws:
- IOException
 
- 
getTaskFailuresThe list of task failures exception.
- 
getNodeFailuresThe list of node failures exception.
- 
rethrowFailuresRethrow task failures if there are any.
- 
toXContentCommonprotected void toXContentCommon(XContentBuilder builder, ToXContent.Params params) throws IOException - Throws:
- IOException
 
- 
equals
- 
hashCodepublic int hashCode()
 
-