Class StartRecoveryRequest

    • Constructor Detail

      • StartRecoveryRequest

        public StartRecoveryRequest​(StreamInput in)
      • StartRecoveryRequest

        public 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.
        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
    • Method Detail

      • recoveryId

        public long recoveryId()
      • shardId

        public ShardId shardId()
      • targetAllocationId

        public java.lang.String targetAllocationId()
      • isPrimaryRelocation

        public boolean isPrimaryRelocation()
      • startingSeqNo

        public long startingSeqNo()