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 node| Modifier 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.ParamsEMPTY_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 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.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisFragmentpublic final XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic void addAdditionalFields(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOExceptionpublic static RecoverySource readFrom(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic final void writeTo(StreamOutput out) throws java.io.IOException
Writeableprotected void writeAdditionalFields(StreamOutput out) throws java.io.IOException
java.io.IOExceptionpublic abstract RecoverySource.Type getType()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object