Class BaseTasksResponse
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
ConstructorDescription<TaskOperationFailure> taskFailures, <? extends ElasticsearchException> nodeFailures)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
o)
The list of node failures exception.The list of task failures exception.int
hashCode()
void
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.
, , , , , , , ,
-
Field Details
-
TASK_FAILURES
protected static final TASK_FAILURES- See Also:
- Constant Field Values
-
NODE_FAILURES
protected static final NODE_FAILURES- See Also:
- Constant Field Values
-
-
Constructor Details
-
BaseTasksResponse
public BaseTasksResponse(<TaskOperationFailure> taskFailures, <? extends ElasticsearchException> nodeFailures) -
BaseTasksResponse
- Throws:
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Throws:
-
getTaskFailures
The list of task failures exception. -
getNodeFailures
The list of node failures exception. -
rethrowFailures
public void rethrowFailures( 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- Throws:
-
equals
public boolean equals( o)- Overrides:
in class
-
hashCode
public int hashCode()- Overrides:
in class
-