Class CheckpointEntry
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.persistence.checkpoint.CheckpointEntry
-
public class CheckpointEntry extends Object
Class represents checkpoint state.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCheckpointEntry.GroupStatestatic classCheckpointEntry.GroupStateLazyStoreGroup state lazy store.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UUIDcheckpointId()WALPointercheckpointMark()Map<Integer,CheckpointEntry.GroupState>groupState(IgniteWriteAheadLogManager wal)LongpartitionCounter(IgniteWriteAheadLogManager wal, int grpId, int part)longtimestamp()StringtoString()
-
-
-
Method Detail
-
timestamp
public long timestamp()
- Returns:
- Checkpoint timestamp.
-
checkpointId
public UUID checkpointId()
- Returns:
- Checkpoint ID.
-
checkpointMark
public WALPointer checkpointMark()
- Returns:
- Checkpoint mark.
-
groupState
public Map<Integer,CheckpointEntry.GroupState> groupState(IgniteWriteAheadLogManager wal) throws IgniteCheckedException
- Parameters:
wal- Write ahead log manager.- Returns:
- Group id -> group state map.
- Throws:
IgniteCheckedException
-
partitionCounter
public Long partitionCounter(IgniteWriteAheadLogManager wal, int grpId, int part) throws IgniteCheckedException
- Parameters:
wal- Write ahead log manager.grpId- Cache group ID.part- Partition ID.- Returns:
- Partition counter or
nullif not found. - Throws:
IgniteCheckedException- If something is wrong when loading the counter from WAL history.
-
-