Class ReplicationResponse.ShardInfo.Failure

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.elasticsearch.action.ShardOperationFailedException
org.elasticsearch.action.support.replication.ReplicationResponse.ShardInfo.Failure
All Implemented Interfaces:
Serializable, Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject
Enclosing class:
ReplicationResponse.ShardInfo

public static class ReplicationResponse.ShardInfo.Failure extends ShardOperationFailedException implements org.elasticsearch.common.xcontent.ToXContentObject
See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • fullShardId

      public ShardId fullShardId()
    • nodeId

      @Nullable public String nodeId()
      Returns:
      On what node the failure occurred.
    • primary

      public boolean primary()
      Returns:
      Whether this failure occurred on a primary shard. (this only reports true for delete by query)
    • 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
    • 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
    • fromXContent

      public static ReplicationResponse.ShardInfo.Failure fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws IOException
      Throws:
      IOException