java.lang.Object
org.elasticsearch.cluster.routing.RecoverySource
- All Implemented Interfaces:
- Writeable,- ToXContent,- ToXContentObject
- Direct Known Subclasses:
- RecoverySource.EmptyStoreRecoverySource,- RecoverySource.ExistingStoreRecoverySource,- RecoverySource.LocalShardsRecoverySource,- RecoverySource.PeerRecoverySource,- RecoverySource.SnapshotRecoverySource
Represents the recovery source of a shard. Available recovery types are:
 - 
RecoverySource.EmptyStoreRecoverySource recovery from an empty store
 - RecoverySource.ExistingStoreRecoverySource recovery from an existing store
 - RecoverySource.PeerRecoverySource recovery from a primary on another node
 - RecoverySource.SnapshotRecoverySource recovery from a snapshot
 - RecoverySource.LocalShardsRecoverySource recovery from other shards of another index on the same node- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classRecovery from a fresh copystatic final classRecovery from an existing on-disk storestatic classrecovery from other shards on same node (shrink index action)static classpeer recovery from a primary shardstatic classrecovery from a snapshotstatic enumNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContentToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFields inherited from interface org.elasticsearch.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddAdditionalFields(XContentBuilder builder, ToXContent.Params params) to be overridden by subclassesbooleanbooleanabstract RecoverySource.TypegetType()inthashCode()static RecoverySourcereadFrom(StreamInput in) booleanfinal XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params) protected voidto be overridden by subclassesfinal voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObjectisFragment
- 
Constructor Details- 
RecoverySourcepublic RecoverySource()
 
- 
- 
Method Details- 
toXContentpublic final XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
- toXContentin interface- ToXContent
- Throws:
- IOException
 
- 
addAdditionalFieldspublic void addAdditionalFields(XContentBuilder builder, ToXContent.Params params) throws IOException to be overridden by subclasses- Throws:
- IOException
 
- 
readFrom- Throws:
- IOException
 
- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Throws:
- IOException
 
- 
writeAdditionalFieldsto be overridden by subclasses- Throws:
- IOException
 
- 
getType
- 
shouldBootstrapNewHistoryUUIDpublic boolean shouldBootstrapNewHistoryUUID()
- 
expectEmptyRetentionLeasespublic boolean expectEmptyRetentionLeases()
- 
equals
- 
hashCodepublic int hashCode()
 
-