Class RecoverySource
java.lang.Object
org.elasticsearch.cluster.routing.RecoverySource
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
- Direct Known Subclasses:
RecoverySource.EmptyStoreRecoverySource,RecoverySource.ExistingStoreRecoverySource,RecoverySource.LocalShardsRecoverySource,RecoverySource.PeerRecoverySource,RecoverySource.SnapshotRecoverySource
public abstract class RecoverySource
extends Object
implements Writeable, org.elasticsearch.xcontent.ToXContentObject
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 Summary
Nested 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.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalFields(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) to be overridden by subclassesbooleanbooleanabstract RecoverySource.TypegetType()inthashCode()static RecoverySourcereadFrom(StreamInput in) booleanfinal org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) protected voidto be overridden by subclassesfinal voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
RecoverySource
public RecoverySource()
-
-
Method Details
-
toXContent
public final org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
addAdditionalFields
public void addAdditionalFields(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException to be overridden by subclasses- Throws:
IOException
-
readFrom
- Throws:
IOException
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
writeAdditionalFields
to be overridden by subclasses- Throws:
IOException
-
getType
-
shouldBootstrapNewHistoryUUID
public boolean shouldBootstrapNewHistoryUUID() -
expectEmptyRetentionLeases
public boolean expectEmptyRetentionLeases() -
equals
-
hashCode
public int hashCode()
-