Class RecoverySource.SnapshotRecoverySource

java.lang.Object
org.elasticsearch.cluster.routing.RecoverySource
org.elasticsearch.cluster.routing.RecoverySource.SnapshotRecoverySource
All Implemented Interfaces:
Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject
Enclosing class:
RecoverySource

public static class RecoverySource.SnapshotRecoverySource
extends RecoverySource
recovery from a snapshot
  • Field Details

    • NO_API_RESTORE_UUID

      public static final java.lang.String NO_API_RESTORE_UUID
      See Also:
      Constant Field Values
  • Constructor Details

    • SnapshotRecoverySource

      public SnapshotRecoverySource​(java.lang.String restoreUUID, Snapshot snapshot, Version version, IndexId indexId)
  • Method Details

    • restoreUUID

      public java.lang.String restoreUUID()
    • snapshot

      public Snapshot snapshot()
    • index

      public IndexId index()
      Gets the IndexId of the recovery source. May contain IndexMetadata.INDEX_UUID_NA_VALUE as the index uuid if it was created by an older version master in a mixed version cluster.
      Returns:
      IndexId
    • version

      public Version version()
    • writeAdditionalFields

      protected void writeAdditionalFields​(StreamOutput out) throws java.io.IOException
      Description copied from class: RecoverySource
      to be overridden by subclasses
      Overrides:
      writeAdditionalFields in class RecoverySource
      Throws:
      java.io.IOException
    • getType

      public RecoverySource.Type getType()
      Specified by:
      getType in class RecoverySource
    • addAdditionalFields

      public void addAdditionalFields​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
      Description copied from class: RecoverySource
      to be overridden by subclasses
      Overrides:
      addAdditionalFields in class RecoverySource
      Throws:
      java.io.IOException
    • toString

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

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class RecoverySource
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class RecoverySource