Class CheckpointWorkflow

    • Method Detail

      • markCheckpointBegin

        public org.apache.ignite.internal.processors.cache.persistence.checkpoint.Checkpoint markCheckpointBegin​(long cpTs,
                                                                                                                 CheckpointProgressImpl curr,
                                                                                                                 CheckpointMetricsTracker tracker,
                                                                                                                 WorkProgressDispatcher workProgressDispatcher)
                                                                                                          throws IgniteCheckedException
        First stage of checkpoint which collects demanded information(dirty pages mostly).
        Parameters:
        cpTs - Checkpoint start timestamp.
        curr - Current checkpoint event info.
        tracker - Checkpoint metrics tracker.
        workProgressDispatcher - Work progress dispatcher.
        Returns:
        Checkpoint collected info.
        Throws:
        IgniteCheckedException - if fail.
      • markCheckpointEnd

        public void markCheckpointEnd​(org.apache.ignite.internal.processors.cache.persistence.checkpoint.Checkpoint chp)
                               throws IgniteCheckedException
        Do some actions on checkpoint finish(After all pages were written to disk).
        Parameters:
        chp - Checkpoint snapshot.
        Throws:
        IgniteCheckedException
      • getRelevantCheckpointListeners

        public List<CheckpointListener> getRelevantCheckpointListeners​(Collection<DataRegion> checkpointedRegions)
        Parameters:
        checkpointedRegions - Regions which will be checkpointed.
        Returns:
        Checkpoint listeners which should be handled.
      • memoryRecoveryRecordPtr

        public void memoryRecoveryRecordPtr​(WALPointer memoryRecoveryRecordPtr)
        Parameters:
        memoryRecoveryRecordPtr - Memory recovery record pointer.
      • addCheckpointListener

        public void addCheckpointListener​(CheckpointListener lsnr,
                                          DataRegion dataRegion)
        Adding the listener which will be called only when given data region will be checkpointed.
        Parameters:
        lsnr - Listener.
        dataRegion - Data region for which listener is corresponded to.
      • removeCheckpointListener

        public void removeCheckpointListener​(CheckpointListener lsnr)
        Parameters:
        lsnr - Listener.
      • stop

        public void stop()
        Stop any activity.
      • start

        public void start()
        Prepare all structure to further work. This object should be fully ready to work after call of this method.