Class SnapshotShardFailure

All Implemented Interfaces:
Serializable, Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject

public class SnapshotShardFailure extends ShardOperationFailedException
Stores information about failures that occurred during shard snapshotting process
See Also:
Serialized Form
  • Constructor Details

    • SnapshotShardFailure

      public SnapshotShardFailure(@Nullable String nodeId, ShardId shardId, String reason)
      Constructs new snapshot shard failure object
      Parameters:
      nodeId - node where failure occurred
      shardId - shard id
      reason - failure reason
  • Method Details

    • nodeId

      @Nullable public String nodeId()
      Returns node id where failure occurred
      Returns:
      node id
    • getShardId

      public ShardId getShardId()
    • writeTo

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

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

      public static SnapshotShardFailure fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws IOException
      Deserializes snapshot failure information from JSON
      Parameters:
      parser - JSON parser
      Returns:
      snapshot failure information
      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
      Throws:
      IOException
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object