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, setParentTask
remoteAddress, remoteAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createTask, getDescription, setParentTask
public 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
Streamable
readFrom
in interface Streamable
readFrom
in class TransportRequest
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class TransportRequest
java.io.IOException