Package org.elasticsearch.cluster
Class RestoreInProgress.ShardRestoreStatus
org.elasticsearch.cluster.RestoreInProgress.ShardRestoreStatus
- All Implemented Interfaces:
Writeable
- Enclosing class:
- RestoreInProgress
Represents status of a restored shard
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Constructor Summary
ConstructorDescriptionnodeId)
Constructs a new shard restore status in initializing state on the given nodenodeId, RestoreInProgress.State state)
Constructs a new shard restore status in with specified state on the given nodenodeId, RestoreInProgress.State state, reason)
Constructs a new shard restore status in with specified state on the given node with specified failure reason -
Method Summary
Modifier and TypeMethodDescriptionboolean
o)
int
hashCode()
nodeId()
Returns node id of the node where shared is getting restoredvoid
readFrom(StreamInput in)
Reads restore status from stream inputReads restore status from stream inputreason()
Returns failure reasonstate()
Returns current statevoid
writeTo(StreamOutput out)
Writes restore status to stream outputMethods inherited from class java.lang.
, , , , , , , ,
-
Constructor Details
-
ShardRestoreStatus
public ShardRestoreStatus( nodeId)Constructs a new shard restore status in initializing state on the given node- Parameters:
nodeId
- node id
-
ShardRestoreStatus
Constructs a new shard restore status in with specified state on the given node- Parameters:
nodeId
- node idstate
- restore state
-
ShardRestoreStatus
Constructs a new shard restore status in with specified state on the given node with specified failure reason- Parameters:
nodeId
- node idstate
- restore statereason
- failure reason
-
-
Method Details
-
state
Returns current state- Returns:
- current state
-
nodeId
public nodeId()Returns node id of the node where shared is getting restored- Returns:
- node id
-
reason
public reason()Returns failure reason- Returns:
- failure reason
-
readShardRestoreStatus
Reads restore status from stream input- Parameters:
in
- stream input- Returns:
- restore status
- Throws:
-
readFrom
Reads restore status from stream input- Parameters:
in
- stream input- Throws:
-
writeTo
Writes restore status to stream output -
equals
public boolean equals( o)- Overrides:
in class
-
hashCode
public int hashCode()- Overrides:
in class
-