public class StartRecoveryRequest extends TransportRequest
TransportRequest.Empty| Constructor and Description |
|---|
StartRecoveryRequest() |
StartRecoveryRequest(ShardId shardId,
java.lang.String targetAllocationId,
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() |
java.lang.String |
targetAllocationId() |
DiscoveryNode |
targetNode() |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
getParentTask, setParentTaskremoteAddress, remoteAddressclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateTask, getDescription, setParentTaskpublic StartRecoveryRequest()
public StartRecoveryRequest(ShardId shardId, java.lang.String targetAllocationId, 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()
@Nullable public java.lang.String targetAllocationId()
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