Class BaseTasksResponse

All Implemented Interfaces:
Writeable, org.elasticsearch.common.util.concurrent.RefCounted
Direct Known Subclasses:
ListTasksResponse

public class BaseTasksResponse
extends ActionResponse
Base class for responses of task-related operations
  • Field Details

  • Constructor Details

    • BaseTasksResponse

      public BaseTasksResponse​(java.util.List<TaskOperationFailure> taskFailures, java.util.List<? extends ElasticsearchException> nodeFailures)
    • BaseTasksResponse

      public BaseTasksResponse​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • writeTo

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Throws:
      java.io.IOException
    • getTaskFailures

      public java.util.List<TaskOperationFailure> getTaskFailures()
      The list of task failures exception.
    • getNodeFailures

      public java.util.List<ElasticsearchException> getNodeFailures()
      The list of node failures exception.
    • rethrowFailures

      public void rethrowFailures​(java.lang.String 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 java.io.IOException
      Throws:
      java.io.IOException
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object