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.Type
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, 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.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
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 void
addAdditionalFields(XContentBuilder builder, ToXContent.Params params)
to be overridden by subclassesboolean
equals(java.lang.Object o)
RecoverySource.Type
getType()
int
hashCode()
java.lang.String
index()
java.lang.String
restoreUUID()
Snapshot
snapshot()
java.lang.String
toString()
Version
version()
protected void
writeAdditionalFields(StreamOutput out)
to be overridden by subclasses-
Methods 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.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Method Detail
-
restoreUUID
public java.lang.String restoreUUID()
-
snapshot
public Snapshot snapshot()
-
index
public java.lang.String index()
-
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 classRecoverySource
- Throws:
java.io.IOException
-
getType
public RecoverySource.Type getType()
- Specified by:
getType
in classRecoverySource
-
addAdditionalFields
public void addAdditionalFields(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
Description copied from class:RecoverySource
to be overridden by subclasses- Overrides:
addAdditionalFields
in classRecoverySource
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classRecoverySource
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classRecoverySource
-
-