Class CheckpointRecord


  • public class CheckpointRecord
    extends WALRecord
    Checkpoint (begin) record
    • Constructor Detail

      • CheckpointRecord

        public CheckpointRecord​(@Nullable
                                @Nullable WALPointer cpMark)
        Parameters:
        cpMark - Checkpoint mark.
      • CheckpointRecord

        public CheckpointRecord​(UUID cpId,
                                @Nullable
                                @Nullable WALPointer cpMark)
        Parameters:
        cpId - Checkpoint ID.
        cpMark - Checkpoint mark.
      • CheckpointRecord

        public CheckpointRecord​(UUID cpId,
                                @Nullable
                                @Nullable WALPointer cpMark,
                                boolean end)
        Constructor kept for serializer
        Parameters:
        cpId - Checkpoint ID.
        cpMark - Checkpoint mark.
        end - Checkpoint end flag - deprecated expected to be always false
    • Method Detail

      • addCacheGroupState

        public void addCacheGroupState​(int grpId,
                                       CacheState state)
        Parameters:
        grpId - Cache group ID.
        state - Cache state.
      • cacheGroupStates

        public void cacheGroupStates​(Map<Integer,​CacheState> cacheGrpStates)
        Parameters:
        cacheGrpStates - Cache states.
      • checkpointId

        public UUID checkpointId()
        Returns:
        Checkpoint ID.
      • end

        public boolean end()
        Returns:
        Checkpoint end flag, now always false
      • checkpointMark

        public WALPointer checkpointMark()
        Returns:
        Safe replay pointer.