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,
long startingSeqNo)
Construct a request for starting a peer recovery.
|
| 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() |
long |
startingSeqNo() |
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, long startingSeqNo)
shardId - the shard ID to recovertargetAllocationId - the allocation id of the target shardsourceNode - the source node to remover fromtargetNode - the target node to recover tometadataSnapshot - the Lucene metadataprimaryRelocation - whether or not the recovery is a primary relocationrecoveryId - the recovery IDstartingSeqNo - the starting sequence numberpublic long recoveryId()
public ShardId shardId()
public java.lang.String targetAllocationId()
public DiscoveryNode sourceNode()
public DiscoveryNode targetNode()
public boolean isPrimaryRelocation()
public Store.MetadataSnapshot metadataSnapshot()
public long startingSeqNo()
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