Class CacheGroupPageScanner

  • All Implemented Interfaces:
    CheckpointListener

    public class CacheGroupPageScanner
    extends Object
    implements CheckpointListener
    Cache group page stores scanner. Scans a range of pages and marks them as dirty to re-encrypt them with the last encryption key on disk.
    • Constructor Detail

      • CacheGroupPageScanner

        public CacheGroupPageScanner​(GridKernalContext ctx)
        Parameters:
        ctx - Grid kernal context.
    • Method Detail

      • statusFuture

        public IgniteInternalFuture<Void> statusFuture​(int grpId)
        Parameters:
        grpId - Cache group ID.
        Returns:
        Future that will be completed when all partitions have been scanned and pages have been written to disk.
      • excludePartition

        public boolean excludePartition​(int grpId,
                                        int partId)
        Stop scannig the specified partition.
        Parameters:
        grpId - Cache group ID.
        partId - Partition ID.
        Returns:
        True if reencryption was cancelled.
      • includePartition

        public void includePartition​(int grpId,
                                     int partId)
        Parameters:
        grpId - Cache group ID.
        partId - Partition ID.
      • remainingPagesCount

        public long remainingPagesCount​(int grpId)
        Parameters:
        grpId - Cache group ID.
        Returns:
        Number of remaining memory pages to scan.
      • getRate

        public double getRate()
        Returns:
        Re-encryption rate limit in megabytes per second (0 - unlimited).
      • setRate

        public void setRate​(double rate)
        Parameters:
        rate - Re-encryption rate limit in megabytes per second (0 - unlimited).