Class TaskOperationFailure

java.lang.Object
org.elasticsearch.action.TaskOperationFailure
All Implemented Interfaces:
Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment

public final class TaskOperationFailure extends Object implements Writeable, org.elasticsearch.common.xcontent.ToXContentFragment
Information about task operation failures The class is final due to serialization limitations
  • Constructor Details

  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • getNodeId

      public String getNodeId()
    • getTaskId

      public long getTaskId()
    • getStatus

      public RestStatus getStatus()
    • getCause

      public Exception getCause()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • fromXContent

      public static TaskOperationFailure fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
    • toXContent

      public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Throws:
      IOException