public static class RecoverySource.SnapshotRecoverySource extends RecoverySource
RecoverySource.LocalShardsRecoverySource, RecoverySource.PeerRecoverySource, RecoverySource.SnapshotRecoverySource, RecoverySource.StoreRecoverySource, RecoverySource.TypeWriteable.Reader<V>, Writeable.Writer<V>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
SnapshotRecoverySource(Snapshot snapshot,
Version version,
java.lang.String index) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAdditionalFields(XContentBuilder builder,
ToXContent.Params params)
to be overridden by subclasses
|
boolean |
equals(java.lang.Object o) |
RecoverySource.Type |
getType() |
int |
hashCode() |
java.lang.String |
index() |
Snapshot |
snapshot() |
java.lang.String |
toString() |
Version |
version() |
protected void |
writeAdditionalFields(StreamOutput out)
to be overridden by subclasses
|
isInitialRecovery, readFrom, toXContent, writeTopublic Snapshot snapshot()
public java.lang.String index()
public Version version()
protected void writeAdditionalFields(StreamOutput out) throws java.io.IOException
RecoverySourcewriteAdditionalFields in class RecoverySourcejava.io.IOExceptionpublic RecoverySource.Type getType()
getType in class RecoverySourcepublic void addAdditionalFields(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
RecoverySourceaddAdditionalFields in class RecoverySourcejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class RecoverySourcepublic int hashCode()
hashCode in class RecoverySource