Class SnapshotShardFailure

java.lang.Object
org.elasticsearch.action.ShardOperationFailedException
org.elasticsearch.snapshots.SnapshotShardFailure
All Implemented Interfaces:
Writeable, ToXContent, ToXContentObject

public class SnapshotShardFailure
extends ShardOperationFailedException
Stores information about failures that occurred during shard snapshotting process
  • Constructor Details

    • SnapshotShardFailure

      public SnapshotShardFailure​(@Nullable java.lang.String nodeId, ShardId shardId, java.lang.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 java.lang.String nodeId()
      Returns node id where failure occurred
      Returns:
      node id
    • writeTo

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

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

      public static SnapshotShardFailure fromXContent​(XContentParser parser) throws java.io.IOException
      Deserializes snapshot failure information from JSON
      Parameters:
      parser - JSON parser
      Returns:
      snapshot failure information
      Throws:
      java.io.IOException
    • toXContent

      public XContentBuilder toXContent​(XContentBuilder builder, 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