public interface IgniteWriteAheadLogManager extends GridCacheSharedManager, IgniteChangeGlobalStateSupport
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupWalDirectories()
Cleanup all directories relating to WAL (e.g. work WAL dir, archive WAL dir).
|
boolean |
disabled(int grpId)
Checks WAL disabled for cache group.
|
void |
flush(WALPointer ptr,
boolean explicitFsync)
Makes sure that all log entries written to the log up until the specified pointer are actually written
to the underlying storage.
|
boolean |
isAlwaysWriteFullPages() |
boolean |
isFullSync() |
long |
lastArchivedSegment() |
long |
lastCompactedSegment() |
WALPointer |
log(WALRecord entry)
Appends the given log entry to the write-ahead log.
|
long |
maxArchivedSegmentToDelete() |
void |
notchLastCheckpointPtr(WALPointer ptr)
Notifies
this about latest checkpoint pointer. |
void |
release(WALPointer start)
Invoke this method to release WAL history since provided pointer that was previously reserved.
|
WALIterator |
replay(WALPointer start)
Invoke this method to iterate over the written log entries.
|
boolean |
reserve(WALPointer start)
Invoke this method to reserve WAL history since provided pointer and prevent it's deletion.
|
boolean |
reserved(WALPointer ptr)
Checks if WAL segment is under lock or reserved
|
int |
reserved(WALPointer low,
WALPointer high)
Checks if WAL segments is under lock or reserved.
|
void |
resumeLogging(WALPointer lastWrittenPtr)
Resumes logging after start.
|
int |
serializerVersion() |
int |
truncate(WALPointer low,
WALPointer high)
Gives a hint to WAL manager to clear entries logged before the given pointer.
|
int |
walArchiveSegments() |
onDisconnected, onKernalStop, onReconnected, printMemoryStats, start, stoponActivate, onDeActivateboolean isAlwaysWriteFullPages()
true If we have to always write full pages.boolean isFullSync()
true if WAL will perform fair syncs on fsync call.int serializerVersion()
void resumeLogging(WALPointer lastWrittenPtr) throws IgniteCheckedException
IgniteCheckedExceptionWALPointer log(WALRecord entry) throws IgniteCheckedException, StorageException
entry - entry to log.flush(WALPointer, boolean) method to make sure the record is
written to the log.IgniteCheckedException - If failed to construct log entry.StorageException - If IO error occurred while writing log entry.void flush(WALPointer ptr, boolean explicitFsync) throws IgniteCheckedException, StorageException
ptr - Optional pointer to write. If null, will sync up to the latest record.explicitFsync - If true, data will be synced to the storage device on hardware level.IgniteCheckedException - If failed to write.StorageException - If IO exception occurred during the write. If an exception is thrown from this
method, the WAL will be invalidated and the node will be stopped.WALIterator replay(WALPointer start) throws IgniteCheckedException, StorageException
start - Optional WAL pointer from which to start iteration.IgniteException - If failed to start iteration.StorageException - If IO error occurred while reading WAL entries.IgniteCheckedExceptionboolean reserve(WALPointer start) throws IgniteCheckedException
start - WAL pointer.IgniteException - If failed to reserve.IgniteCheckedExceptionvoid release(WALPointer start) throws IgniteCheckedException
start - WAL pointer.IgniteException - If failed to release.IgniteCheckedExceptionint truncate(WALPointer low, WALPointer high)
low - Pointer since which WAL will be truncated. If null, WAL will be truncated from the oldest segment.high - Pointer for which it is safe to clear the log.void notchLastCheckpointPtr(WALPointer ptr)
this about latest checkpoint pointer.
Current implementations, in fact, react by keeping all WAL segments uncompacted starting from index prior to
the index of ptr. Compaction implies filtering out physical records and ZIP compression.
ptr - Pointer for which it is safe to compact the log.int walArchiveSegments()
long lastArchivedSegment()
long lastCompactedSegment()
long maxArchivedSegmentToDelete()
boolean reserved(WALPointer ptr)
ptr - Pointer to check.int reserved(WALPointer low, WALPointer high)
low - Pointer since which WAL is locked or reserved. If null, checks from the oldest segment.high - Pointer for which WAL is locked or reserved.boolean disabled(int grpId)
grpId - Group id.void cleanupWalDirectories()
throws IgniteCheckedException
IgniteCheckedException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019