Class Snapshot

org.elasticsearch.snapshots.Snapshot
All Implemented Interfaces:
Writeable

public final class Snapshot extends implements Writeable
Basic information about a snapshot - a SnapshotId and the repository that the snapshot belongs to.
  • Constructor Details

    • Snapshot

      public Snapshot( repository, SnapshotId snapshotId)
      Constructs a snapshot.
    • Snapshot

      public Snapshot(StreamInput in) throws
      Constructs a snapshot from the stream input.
      Throws:
  • Method Details

    • getRepository

      public  getRepository()
      Gets the repository name for the snapshot.
    • getSnapshotId

      public SnapshotId getSnapshotId()
      Gets the snapshot id for the snapshot.
    • toString

      public  toString()
      Overrides:
       in class 
    • equals

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

      public int hashCode()
      Overrides:
       in class 
    • writeTo

      public void writeTo(StreamOutput out) throws
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws: