Class RecoverySource
org.elasticsearch.cluster.routing.RecoverySource
- All Implemented Interfaces:
Writeable
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentObject
- Direct Known Subclasses:
RecoverySource.EmptyStoreRecoverySource
,RecoverySource.ExistingStoreRecoverySource
,RecoverySource.LocalShardsRecoverySource
,RecoverySource.PeerRecoverySource
,RecoverySource.SnapshotRecoverySource
public abstract class RecoverySource
extends
implements Writeable, org.elasticsearch.common.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
Modifier and TypeClassDescriptionstatic class
Recovery from a fresh copystatic class
Recovery from an existing on-disk storestatic class
recovery from other shards on same node (shrink index action)static class
peer recovery from a primary shardstatic class
recovery from a snapshotstatic class
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdditionalFields(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
to be overridden by subclassesboolean
o)
boolean
abstract RecoverySource.Type
getType()
int
hashCode()
static RecoverySource
readFrom(StreamInput in)
boolean
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
protected void
to be overridden by subclassesvoid
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class java.lang.
, , , , , , , ,
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
RecoverySource
public RecoverySource()
-
-
Method Details
-
toXContent
public final org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
-
addAdditionalFields
public void addAdditionalFields(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throwsto be overridden by subclasses- Throws:
-
readFrom
- Throws:
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput. -
writeAdditionalFields
to be overridden by subclasses- Throws:
-
getType
-
shouldBootstrapNewHistoryUUID
public boolean shouldBootstrapNewHistoryUUID() -
expectEmptyRetentionLeases
public boolean expectEmptyRetentionLeases() -
equals
public boolean equals( o)- Overrides:
in class
-
hashCode
public int hashCode()- Overrides:
in class
-