public static class RestoreInProgress.ShardRestoreStatus
extends java.lang.Object
Constructor | Description |
---|---|
ShardRestoreStatus(java.lang.String nodeId) |
Constructs a new shard restore status in initializing state on the given node
|
ShardRestoreStatus(java.lang.String nodeId,
RestoreInProgress.State state) |
Constructs a new shard restore status in with specified state on the given node
|
ShardRestoreStatus(java.lang.String nodeId,
RestoreInProgress.State state,
java.lang.String reason) |
Constructs a new shard restore status in with specified state on the given node with specified failure reason
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object o) |
|
int |
hashCode() |
|
java.lang.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
|
java.lang.String |
reason() |
Returns failure reason
|
RestoreInProgress.State |
state() |
Returns current state
|
void |
writeTo(StreamOutput out) |
Writes restore status to stream output
|
public ShardRestoreStatus(java.lang.String nodeId)
nodeId
- node idpublic ShardRestoreStatus(java.lang.String nodeId, RestoreInProgress.State state)
nodeId
- node idstate
- restore statepublic ShardRestoreStatus(java.lang.String nodeId, RestoreInProgress.State state, java.lang.String reason)
nodeId
- node idstate
- restore statereason
- failure reasonpublic RestoreInProgress.State state()
public java.lang.String nodeId()
public java.lang.String reason()
public static RestoreInProgress.ShardRestoreStatus readShardRestoreStatus(StreamInput in) throws java.io.IOException
in
- stream inputjava.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
in
- stream inputjava.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
out
- stream inputjava.io.IOException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object