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.Type |
static class |
RecoveryState.VerifyIndex |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
RecoveryState(ShardId shardId,
boolean primary,
RecoveryState.Type type,
DiscoveryNode sourceNode,
DiscoveryNode targetNode) |
RecoveryState(ShardId shardId,
boolean primary,
RecoveryState.Type type,
RestoreSource restoreSource,
DiscoveryNode targetNode) |
Modifier and Type | Method and Description |
---|---|
RecoveryState.Index |
getIndex() |
boolean |
getPrimary() |
RestoreSource |
getRestoreSource() |
ShardId |
getShardId() |
DiscoveryNode |
getSourceNode() |
RecoveryState.Stage |
getStage() |
DiscoveryNode |
getTargetNode() |
RecoveryState.Timer |
getTimer() |
RecoveryState.Translog |
getTranslog() |
RecoveryState.Type |
getType() |
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.
|
public RecoveryState(ShardId shardId, boolean primary, RecoveryState.Type type, DiscoveryNode sourceNode, DiscoveryNode targetNode)
public RecoveryState(ShardId shardId, boolean primary, RecoveryState.Type type, RestoreSource restoreSource, DiscoveryNode targetNode)
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 RecoveryState.Type getType()
public DiscoveryNode getSourceNode()
public DiscoveryNode getTargetNode()
public RestoreSource getRestoreSource()
public boolean getPrimary()
public static RecoveryState readRecoveryState(StreamInput in) throws java.io.IOException
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException