Class PartitionRecovery

java.lang.Object
org.gridgain.internal.recovery.PartitionRecovery
All Implemented Interfaces:
Recovery

public class PartitionRecovery extends Object implements Recovery
Partition recovery.
  • Field Details

    • TEMP_TABLE_SCHEMA_VERSION

      public static final int TEMP_TABLE_SCHEMA_VERSION
      Version of the temporary table created for recovery.
      See Also:
  • Constructor Details

    • PartitionRecovery

      public PartitionRecovery(StorageProvider storageProvider, TableDataProvider dataProvider, @Nullable @Nullable org.apache.ignite.internal.schema.BinaryRowUpgrader rowUpgrader, int partitionId, org.apache.ignite.internal.hlc.HybridTimestamp timestamp, ExecutorService threadPool, int batchSize, boolean lastInChain, RowsStatisticAccumulator rowsStatisticAccumulator)
      Constructor.
      Parameters:
      storageProvider - Partition storage provider.
      dataProvider - Table data provider.
      rowUpgrader - Optional row upgrader.
      partitionId - Partition ID.
      timestamp - Timestamp to recovery.
      threadPool - Working thread pool.
      batchSize - Recovery batch size.
      lastInChain - If this recovery of the partition is last in chain (i.e. for incremental snapshots, when partitions are restored in multiple stages).
      rowsStatisticAccumulator - Rows statistic accumulator.
  • Method Details

    • start

      public CompletableFuture<Void> start()
      Description copied from interface: Recovery
      Starts recovery process.
      Specified by:
      start in interface Recovery
      Returns:
      Future that will complete when recovery is finished, cancellation will finish future without any new store actions.
    • cancel

      public void cancel()
      Description copied from interface: Recovery
      Cancels recovery process. If the recovery has not yet started, canceling will have no effect.
      Specified by:
      cancel in interface Recovery
    • partitionId

      public int partitionId()