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.Empty
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBaseTasksResponse(List<TaskOperationFailure> taskFailures, List<? extends ElasticsearchException> nodeFailures)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
The list of node failures exception.The list of task failures exception.int
hashCode()
void
rethrowFailures(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
-
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:Writeable
Write 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.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-