Class SnapshotShardFailure

    • Constructor Detail

      • 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 Detail

      • nodeId

        @Nullable
        public java.lang.String nodeId()
        Returns node id where failure occurred
        Returns:
        node id
      • readFrom

        public void readFrom​(StreamInput in)
                      throws java.io.IOException
        Description copied from interface: Streamable
        Set this object's fields from a StreamInput.
        Throws:
        java.io.IOException
      • writeTo

        public void writeTo​(StreamOutput out)
                     throws java.io.IOException
        Description copied from interface: Streamable
        Write this object's fields to a 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
      • 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