public class StartRecoveryRequest extends TransportRequest
TransportRequest.Empty| Constructor and Description |
|---|
StartRecoveryRequest() |
StartRecoveryRequest(ShardId shardId,
DiscoveryNode sourceNode,
DiscoveryNode targetNode,
Store.MetadataSnapshot metadataSnapshot,
boolean primaryRelocation,
long recoveryId)
Start recovery request.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPrimaryRelocation() |
Store.MetadataSnapshot |
metadataSnapshot() |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
long |
recoveryId() |
ShardId |
shardId() |
DiscoveryNode |
sourceNode() |
DiscoveryNode |
targetNode() |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
createTask, getDescription, getParentTask, setParentTask, setParentTaskremoteAddress, remoteAddresspublic StartRecoveryRequest()
public StartRecoveryRequest(ShardId shardId, DiscoveryNode sourceNode, DiscoveryNode targetNode, Store.MetadataSnapshot metadataSnapshot, boolean primaryRelocation, long recoveryId)
sourceNode - The node to recover fromtargetNode - The node to recover topublic long recoveryId()
public ShardId shardId()
public DiscoveryNode sourceNode()
public DiscoveryNode targetNode()
public boolean isPrimaryRelocation()
public Store.MetadataSnapshot metadataSnapshot()
public void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class TransportRequestjava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in class TransportRequestjava.io.IOException