public class RecoveryState extends 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.ParamsEMPTY_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) |
static RecoveryState |
readRecoveryState(StreamInput in) |
RecoveryState |
setStage(RecoveryState.Stage stage) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
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 IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2017. All rights reserved.