Class RecoverySource.ExistingStoreRecoverySource
java.lang.Object
org.elasticsearch.cluster.routing.RecoverySource
org.elasticsearch.cluster.routing.RecoverySource.ExistingStoreRecoverySource
- All Implemented Interfaces:
Writeable
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.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
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 Modifier and Type Field Description static RecoverySource.ExistingStoreRecoverySource
FORCE_STALE_PRIMARY_INSTANCE
static java.lang.String
FORCED_ALLOCATION_ID
Special allocation id that shard has during initialization on allocate_stale_primarystatic RecoverySource.ExistingStoreRecoverySource
INSTANCE
-
Method Summary
Modifier and Type Method Description void
addAdditionalFields(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
to be overridden by subclassesboolean
expectEmptyRetentionLeases()
RecoverySource.Type
getType()
boolean
shouldBootstrapNewHistoryUUID()
java.lang.String
toString()
protected void
writeAdditionalFields(StreamOutput out)
to be overridden by subclassesMethods inherited from class org.elasticsearch.cluster.routing.RecoverySource
equals, hashCode, readFrom, toXContent, writeTo
-
Field Details
-
FORCED_ALLOCATION_ID
public static final java.lang.String FORCED_ALLOCATION_IDSpecial allocation id that shard has during initialization on allocate_stale_primary- See Also:
- Constant Field Values
-
INSTANCE
-
FORCE_STALE_PRIMARY_INSTANCE
-
-
Method Details
-
addAdditionalFields
public void addAdditionalFields(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOExceptionDescription copied from class:RecoverySource
to be overridden by subclasses- Overrides:
addAdditionalFields
in classRecoverySource
- Throws:
java.io.IOException
-
writeAdditionalFields
Description copied from class:RecoverySource
to be overridden by subclasses- Overrides:
writeAdditionalFields
in classRecoverySource
- Throws:
java.io.IOException
-
shouldBootstrapNewHistoryUUID
public boolean shouldBootstrapNewHistoryUUID()- Overrides:
shouldBootstrapNewHistoryUUID
in classRecoverySource
-
getType
- Specified by:
getType
in classRecoverySource
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
expectEmptyRetentionLeases
public boolean expectEmptyRetentionLeases()- Overrides:
expectEmptyRetentionLeases
in classRecoverySource
-