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
public static class RecoverySource.SnapshotRecoverySource extends 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.common.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
-
Constructor Summary
Constructors Constructor Description SnapshotRecoverySource(java.lang.String restoreUUID, Snapshot snapshot, Version version, java.lang.String index) -
Method Summary
Modifier and Type Method Description voidaddAdditionalFields(XContentBuilder builder, ToXContent.Params params)to be overridden by subclassesbooleanequals(java.lang.Object o)RecoverySource.TypegetType()inthashCode()java.lang.Stringindex()java.lang.StringrestoreUUID()Snapshotsnapshot()java.lang.StringtoString()Versionversion()protected voidwriteAdditionalFields(StreamOutput out)to be overridden by subclassesMethods inherited from class org.elasticsearch.cluster.routing.RecoverySource
expectEmptyRetentionLeases, readFrom, shouldBootstrapNewHistoryUUID, toXContent, writeTo
-
Constructor Details
-
Method Details
-
restoreUUID
public java.lang.String restoreUUID() -
snapshot
-
index
public java.lang.String index() -
version
-
writeAdditionalFields
Description copied from class:RecoverySourceto be overridden by subclasses- Overrides:
writeAdditionalFieldsin classRecoverySource- Throws:
java.io.IOException
-
getType
- Specified by:
getTypein classRecoverySource
-
addAdditionalFields
public void addAdditionalFields(XContentBuilder builder, ToXContent.Params params) throws java.io.IOExceptionDescription copied from class:RecoverySourceto be overridden by subclasses- Overrides:
addAdditionalFieldsin classRecoverySource- Throws:
java.io.IOException
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classRecoverySource
-
hashCode
public int hashCode()- Overrides:
hashCodein classRecoverySource
-