public class RecoveryState extends java.lang.Object implements ToXContent, Streamable
| Modifier and Type | Class and Description |
|---|---|
static class |
RecoveryState.File |
static class |
RecoveryState.Index |
static class |
RecoveryState.Stage |
static class |
RecoveryState.Timer |
static class |
RecoveryState.Translog |
static class |
RecoveryState.VerifyIndex |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
RecoveryState(ShardRouting shardRouting,
DiscoveryNode targetNode,
DiscoveryNode sourceNode) |
| Modifier and Type | Method and Description |
|---|---|
RecoveryState.Index |
getIndex() |
boolean |
getPrimary() |
RecoverySource |
getRecoverySource() |
ShardId |
getShardId() |
DiscoveryNode |
getSourceNode()
Returns recovery source node (only non-null if peer recovery)
|
RecoveryState.Stage |
getStage() |
DiscoveryNode |
getTargetNode() |
RecoveryState.Timer |
getTimer() |
RecoveryState.Translog |
getTranslog() |
RecoveryState.VerifyIndex |
getVerifyIndex() |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
static RecoveryState |
readRecoveryState(StreamInput in) |
RecoveryState |
setStage(RecoveryState.Stage stage) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragmentpublic RecoveryState(ShardRouting shardRouting, DiscoveryNode targetNode, @Nullable DiscoveryNode sourceNode)
public ShardId getShardId()
public RecoveryState.Stage getStage()
public RecoveryState setStage(RecoveryState.Stage stage)
public RecoveryState.Index getIndex()
public RecoveryState.VerifyIndex getVerifyIndex()
public RecoveryState.Translog getTranslog()
public RecoveryState.Timer getTimer()
public RecoverySource getRecoverySource()
@Nullable public DiscoveryNode getSourceNode()
public DiscoveryNode getTargetNode()
public boolean getPrimary()
public static RecoveryState readRecoveryState(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface Streamablejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface Streamablejava.io.IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOException