Class RecoverySource.ExistingStoreRecoverySource
- java.lang.Object
-
- org.elasticsearch.cluster.routing.RecoverySource
-
- org.elasticsearch.cluster.routing.RecoverySource.ExistingStoreRecoverySource
-
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
- Enclosing class:
- RecoverySource
public static final class RecoverySource.ExistingStoreRecoverySource extends RecoverySource
Recovery from an existing on-disk store
-
-
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 Modifier and Type Field Description static RecoverySource.ExistingStoreRecoverySourceFORCE_STALE_PRIMARY_INSTANCEstatic java.lang.StringFORCED_ALLOCATION_IDSpecial allocation id that shard has during initialization on allocate_stale_primarystatic RecoverySource.ExistingStoreRecoverySourceINSTANCE-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
Modifier and Type Method Description voidaddAdditionalFields(XContentBuilder builder, ToXContent.Params params)to be overridden by subclassesbooleanexpectEmptyRetentionLeases()RecoverySource.TypegetType()booleanshouldBootstrapNewHistoryUUID()java.lang.StringtoString()protected voidwriteAdditionalFields(StreamOutput out)to be overridden by subclasses-
Methods inherited from class org.elasticsearch.cluster.routing.RecoverySource
equals, hashCode, readFrom, 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
-
-
-
-
Field Detail
-
FORCED_ALLOCATION_ID
public static final java.lang.String FORCED_ALLOCATION_ID
Special allocation id that shard has during initialization on allocate_stale_primary- See Also:
- Constant Field Values
-
INSTANCE
public static final RecoverySource.ExistingStoreRecoverySource INSTANCE
-
FORCE_STALE_PRIMARY_INSTANCE
public static final RecoverySource.ExistingStoreRecoverySource FORCE_STALE_PRIMARY_INSTANCE
-
-
Method Detail
-
addAdditionalFields
public void addAdditionalFields(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
Description copied from class:RecoverySourceto be overridden by subclasses- Overrides:
addAdditionalFieldsin classRecoverySource- Throws:
java.io.IOException
-
writeAdditionalFields
protected void writeAdditionalFields(StreamOutput out) throws java.io.IOException
Description copied from class:RecoverySourceto be overridden by subclasses- Overrides:
writeAdditionalFieldsin classRecoverySource- Throws:
java.io.IOException
-
shouldBootstrapNewHistoryUUID
public boolean shouldBootstrapNewHistoryUUID()
- Overrides:
shouldBootstrapNewHistoryUUIDin classRecoverySource
-
getType
public RecoverySource.Type getType()
- Specified by:
getTypein classRecoverySource
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
expectEmptyRetentionLeases
public boolean expectEmptyRetentionLeases()
- Overrides:
expectEmptyRetentionLeasesin classRecoverySource
-
-