Class RecoverySource.SnapshotRecoverySource
java.lang.Object
org.elasticsearch.cluster.routing.RecoverySource
org.elasticsearch.cluster.routing.RecoverySource.SnapshotRecoverySource
- All Implemented Interfaces:
Writeable
,org.elasticsearch.xcontent.ToXContent
,org.elasticsearch.xcontent.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.Type
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionSnapshotRecoverySource
(String restoreUUID, Snapshot snapshot, Version version, IndexId indexId) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdditionalFields
(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) to be overridden by subclassesboolean
getType()
int
hashCode()
index()
Gets theIndexId
of the recovery source.snapshot()
toString()
version()
protected void
to be overridden by subclassesMethods inherited from class org.elasticsearch.cluster.routing.RecoverySource
expectEmptyRetentionLeases, readFrom, shouldBootstrapNewHistoryUUID, toXContent, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
NO_API_RESTORE_UUID
- See Also:
-
-
Constructor Details
-
SnapshotRecoverySource
-
-
Method Details
-
restoreUUID
-
snapshot
-
index
Gets theIndexId
of the recovery source. May containIndexMetadata.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
-
writeAdditionalFields
Description copied from class:RecoverySource
to be overridden by subclasses- Overrides:
writeAdditionalFields
in classRecoverySource
- Throws:
IOException
-
getType
- Specified by:
getType
in classRecoverySource
-
addAdditionalFields
public void addAdditionalFields(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException Description copied from class:RecoverySource
to be overridden by subclasses- Overrides:
addAdditionalFields
in classRecoverySource
- Throws:
IOException
-
toString
-
equals
- Overrides:
equals
in classRecoverySource
-
hashCode
public int hashCode()- Overrides:
hashCode
in classRecoverySource
-