Class ShardSnapshotResult

java.lang.Object
org.elasticsearch.repositories.ShardSnapshotResult
All Implemented Interfaces:
Writeable

public class ShardSnapshotResult
extends java.lang.Object
implements Writeable
The details of a successful shard-level snapshot that are used to build the overall snapshot during finalization.
  • Constructor Details

    • ShardSnapshotResult

      public ShardSnapshotResult​(java.lang.String generation, ByteSizeValue size, int segmentCount)
      Parameters:
      generation - the shard generation UUID, which uniquely identifies the specific snapshot of the shard
      size - the total size of all the blobs that make up the shard snapshot, or equivalently, the size of the shard when restored
      segmentCount - the number of segments in this shard snapshot
    • ShardSnapshotResult

      public ShardSnapshotResult​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • getGeneration

      public java.lang.String getGeneration()
      Returns:
      the shard generation UUID, which uniquely identifies the specific snapshot of the shard
    • getSize

      public ByteSizeValue getSize()
      Returns:
      the total size of all the blobs that make up the shard snapshot, or equivalently, the size of the shard when restored
    • getSegmentCount

      public int getSegmentCount()
      Returns:
      the number of segments in this shard snapshot
    • writeTo

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      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
    • toString

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