Class RestoreInfo

java.lang.Object
org.elasticsearch.snapshots.RestoreInfo
All Implemented Interfaces:
Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class RestoreInfo extends Object implements org.elasticsearch.xcontent.ToXContentObject, Writeable
Information about successfully completed restore operation.

Returned as part of RestoreSnapshotResponse

  • Constructor Details

  • Method Details

    • name

      public String name()
      Snapshot name
      Returns:
      snapshot name
    • indices

      public List<String> indices()
      List of restored indices
      Returns:
      list of restored indices
    • totalShards

      public int totalShards()
      Number of shards being restored
      Returns:
      number of being restored
    • failedShards

      public int failedShards()
      Number of failed shards
      Returns:
      number of failed shards
    • successfulShards

      public int successfulShards()
      Number of successful shards
      Returns:
      number of successful shards
    • toXContent

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

      public static RestoreInfo fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException
      Throws:
      IOException
    • 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
    • readOptionalRestoreInfo

      public static RestoreInfo readOptionalRestoreInfo(StreamInput in) throws IOException
      Reads optional restore info from StreamInput
      Parameters:
      in - stream input
      Returns:
      restore info
      Throws:
      IOException
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object