public class CheckpointMarkersStorage extends Object
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
CP_FILE_NAME_PATTERN
Checkpoint file name pattern.
|
File |
cpDir
Checkpoint metadata directory ("cp"), contains files with checkpoint start and end
|
static int |
DFLT_IGNITE_CHECKPOINT_MAP_SNAPSHOT_THRESHOLD
Default threshold of the checkpoint quantity since the last earliest checkpoint map snapshot.
|
static String |
EARLIEST_CP_SNAPSHOT_FILE
Earliest checkpoint map snapshot file name.
|
protected IgniteLogger |
log
Logger.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
checkpointFileName(CheckpointEntry cp,
CheckpointEntryType type) |
void |
cleanupCheckpointDirectory()
Cleanup checkpoint directory from all temporary files.
|
void |
cleanupTempCheckpointDirectory()
Cleanup checkpoint directory from all temporary files.
|
CheckpointHistory |
history() |
void |
initialize()
Filling internal structures with data from disk.
|
void |
onCheckpointFinished(org.apache.ignite.internal.processors.cache.persistence.checkpoint.Checkpoint chp)
Logs and clears checkpoint history after checkpoint finish.
|
CheckpointStatus |
readCheckpointStatus() |
void |
removeCheckpointsUntil(@Nullable WALPointer highBound)
Wal truncate callback.
|
CheckpointEntry |
removeFromEarliestCheckpoints(Integer grpId)
|
CheckpointEntry |
writeCheckpointEntry(long cpTs,
UUID cpId,
WALPointer ptr,
@Nullable CheckpointRecord rec,
CheckpointEntryType type,
boolean skipSync)
Writes checkpoint entry buffer
entryBuf to specified checkpoint file with 2-phase protocol. |
public static final Pattern CP_FILE_NAME_PATTERN
public static final int DFLT_IGNITE_CHECKPOINT_MAP_SNAPSHOT_THRESHOLD
public static final String EARLIEST_CP_SNAPSHOT_FILE
protected IgniteLogger log
public final File cpDir
public void cleanupTempCheckpointDirectory()
throws IgniteCheckedException
IgniteCheckedExceptionpublic void cleanupCheckpointDirectory()
throws IgniteCheckedException
IgniteCheckedExceptionpublic void initialize()
throws IgniteCheckedException
IgniteCheckedExceptionpublic void removeCheckpointsUntil(@Nullable
@Nullable WALPointer highBound)
throws IgniteCheckedException
highBound - Upper bound.IgniteCheckedException - If failed.public void onCheckpointFinished(org.apache.ignite.internal.processors.cache.persistence.checkpoint.Checkpoint chp)
throws IgniteCheckedException
chp - Finished checkpoint.IgniteCheckedException - If failed.public CheckpointStatus readCheckpointStatus() throws IgniteCheckedException
IgniteCheckedException - If failed to read checkpoint status page.public CheckpointEntry writeCheckpointEntry(long cpTs, UUID cpId, WALPointer ptr, @Nullable @Nullable CheckpointRecord rec, CheckpointEntryType type, boolean skipSync) throws StorageException
entryBuf to specified checkpoint file with 2-phase protocol.cpTs - Checkpoint timestamp.cpId - Checkpoint id.ptr - WAL pointer containing record.rec - Checkpoint WAL record.type - Checkpoint type.StorageException - If failed to write checkpoint entry.public static String checkpointFileName(CheckpointEntry cp, CheckpointEntryType type)
cp - Checkpoint entry.type - Checkpoint type.public CheckpointHistory history()
public CheckpointEntry removeFromEarliestCheckpoints(Integer grpId)
grpId - Group id.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023