public abstract class RecoverySource extends java.lang.Object implements Writeable, ToXContent
RecoverySource.StoreRecoverySource
recovery from the local store (empty or with existing data)
- 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 nodeModifier and Type | Class and Description |
---|---|
static class |
RecoverySource.LocalShardsRecoverySource
recovery from other shards on same node (shrink index action)
|
static class |
RecoverySource.PeerRecoverySource
peer recovery from a primary shard
|
static class |
RecoverySource.SnapshotRecoverySource
recovery from a snapshot
|
static class |
RecoverySource.StoreRecoverySource
recovery from an existing on-disk store or a fresh copy
|
static class |
RecoverySource.Type |
Writeable.Reader<V>, Writeable.Writer<V>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
RecoverySource() |
Modifier and Type | Method and Description |
---|---|
void |
addAdditionalFields(XContentBuilder builder,
ToXContent.Params params)
to be overridden by subclasses
|
boolean |
equals(java.lang.Object o) |
abstract RecoverySource.Type |
getType() |
int |
hashCode() |
static boolean |
isInitialRecovery(RecoverySource.Type type)
returns true for recovery types that indicate that a primary is being allocated for the very first time.
|
static RecoverySource |
readFrom(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
protected void |
writeAdditionalFields(StreamOutput out)
to be overridden by subclasses
|
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
public final XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public void addAdditionalFields(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOException
public static RecoverySource readFrom(StreamInput in) throws java.io.IOException
java.io.IOException
public final void writeTo(StreamOutput out) throws java.io.IOException
Writeable
protected void writeAdditionalFields(StreamOutput out) throws java.io.IOException
java.io.IOException
public abstract RecoverySource.Type getType()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static boolean isInitialRecovery(RecoverySource.Type type)
IndexMetaData.INDEX_ROUTING_INITIAL_RECOVERY_GROUP_SETTING