Class StartRecoveryRequest

All Implemented Interfaces:
Writeable, org.elasticsearch.core.RefCounted, TaskAwareRequest

public class StartRecoveryRequest extends TransportRequest
Represents a request for starting a peer recovery.
  • Constructor Details

    • StartRecoveryRequest

      public StartRecoveryRequest(StreamInput in) throws IOException
      Throws:
      IOException
    • StartRecoveryRequest

      public StartRecoveryRequest(ShardId shardId, String targetAllocationId, DiscoveryNode sourceNode, DiscoveryNode targetNode, Store.MetadataSnapshot metadataSnapshot, boolean primaryRelocation, long recoveryId, long startingSeqNo, boolean canDownloadSnapshotFiles)
      Construct a request for starting a peer recovery.
      Parameters:
      shardId - the shard ID to recover
      targetAllocationId - the allocation id of the target shard
      sourceNode - the source node to remover from
      targetNode - the target node to recover to
      metadataSnapshot - the Lucene metadata
      primaryRelocation - whether or not the recovery is a primary relocation
      recoveryId - the recovery ID
      startingSeqNo - the starting sequence number
      canDownloadSnapshotFiles - flag that indicates if the snapshot files can be downloaded
  • Method Details