Class RestoreInfo

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

public class RestoreInfo extends Object implements org.elasticsearch.common.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
    • status

      public RestStatus status()
      REST status of the operation
      Returns:
      REST status
    • 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 RestoreInfo fromXContent(org.elasticsearch.common.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