public static class RestoreInProgress.ShardRestoreStatus extends Object
| Constructor and Description |
|---|
ShardRestoreStatus(String nodeId)
Constructs a new shard restore status in initializing state on the given node
|
ShardRestoreStatus(String nodeId,
RestoreInProgress.State state)
Constructs a new shard restore status in with specified state on the given node
|
ShardRestoreStatus(String nodeId,
RestoreInProgress.State state,
String reason)
Constructs a new shard restore status in with specified state on the given node with specified failure reason
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
String |
nodeId()
Returns node id of the node where shared is getting restored
|
void |
readFrom(StreamInput in)
Reads restore status from stream input
|
static RestoreInProgress.ShardRestoreStatus |
readShardRestoreStatus(StreamInput in)
Reads restore status from stream input
|
String |
reason()
Returns failure reason
|
RestoreInProgress.State |
state()
Returns current state
|
void |
writeTo(StreamOutput out)
Writes restore status to stream output
|
public ShardRestoreStatus(String nodeId)
nodeId - node idpublic ShardRestoreStatus(String nodeId, RestoreInProgress.State state)
nodeId - node idstate - restore statepublic ShardRestoreStatus(String nodeId, RestoreInProgress.State state, String reason)
nodeId - node idstate - restore statereason - failure reasonpublic RestoreInProgress.State state()
public String nodeId()
public String reason()
public static RestoreInProgress.ShardRestoreStatus readShardRestoreStatus(StreamInput in) throws IOException
in - stream inputIOExceptionpublic void readFrom(StreamInput in) throws IOException
in - stream inputIOExceptionpublic void writeTo(StreamOutput out) throws IOException
out - stream inputIOExceptionCopyright © 2009–2016. All rights reserved.