Module org.elasticsearch.server
Class RecoverySource.SnapshotRecoverySource
java.lang.Object
org.elasticsearch.cluster.routing.RecoverySource
org.elasticsearch.cluster.routing.RecoverySource.SnapshotRecoverySource
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
- Enclosing class:
RecoverySource
recovery from a snapshot
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.cluster.routing.RecoverySource
RecoverySource.EmptyStoreRecoverySource, RecoverySource.ExistingStoreRecoverySource, RecoverySource.LocalShardsRecoverySource, RecoverySource.PeerRecoverySource, RecoverySource.SnapshotRecoverySource, RecoverySource.TypeNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionSnapshotRecoverySource(String restoreUUID, Snapshot snapshot, IndexVersion version, IndexId indexId) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalFields(XContentBuilder builder, ToXContent.Params params) to be overridden by subclassesbooleangetType()inthashCode()index()Gets theIndexIdof the recovery source.snapshot()toString()version()protected voidto be overridden by subclassesMethods inherited from class org.elasticsearch.cluster.routing.RecoverySource
expectEmptyRetentionLeases, readFrom, shouldBootstrapNewHistoryUUID, toXContent, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
NO_API_RESTORE_UUID
- See Also:
-
-
Constructor Details
-
SnapshotRecoverySource
public SnapshotRecoverySource(String restoreUUID, Snapshot snapshot, IndexVersion version, IndexId indexId)
-
-
Method Details
-
restoreUUID
-
snapshot
-
index
Gets theIndexIdof the recovery source. May containIndexMetadata.INDEX_UUID_NA_VALUEas the index uuid if it was created by an older version master in a mixed version cluster.- Returns:
- IndexId
-
version
-
writeAdditionalFields
Description copied from class:RecoverySourceto be overridden by subclasses- Overrides:
writeAdditionalFieldsin classRecoverySource- Throws:
IOException
-
getType
- Specified by:
getTypein classRecoverySource
-
addAdditionalFields
public void addAdditionalFields(XContentBuilder builder, ToXContent.Params params) throws IOException Description copied from class:RecoverySourceto be overridden by subclasses- Overrides:
addAdditionalFieldsin classRecoverySource- Throws:
IOException
-
toString
-
equals
- Overrides:
equalsin classRecoverySource
-
hashCode
public int hashCode()- Overrides:
hashCodein classRecoverySource
-