public interface IgniteWriteAheadLogManager extends GridCacheSharedManager, IgniteChangeGlobalStateSupport
| Modifier and Type | Method and Description |
|---|---|
void |
fsync(WALPointer ptr)
Makes sure that all log entries written to the log up until the specified pointer are actually persisted to
the underlying storage.
|
boolean |
isAlwaysWriteFullPages() |
boolean |
isFullSync() |
WALPointer |
log(WALRecord entry)
Appends the given log entry to the write-ahead log.
|
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
|
void |
resumeLogging(WALPointer lastWrittenPtr)
Resumes logging after start.
|
int |
truncate(WALPointer ptr)
Gives a hint to WAL manager to clear entries logged before the given pointer.
|
int |
walArchiveSegments() |
onDisconnected, onKernalStop, 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.void resumeLogging(WALPointer lastWrittenPtr) throws IgniteCheckedException
IgniteCheckedExceptionWALPointer log(WALRecord entry) throws IgniteCheckedException, StorageException
entry - entry to log.fsync(WALPointer) 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 fsync(WALPointer ptr) throws IgniteCheckedException, StorageException
ptr - Optional pointer to sync. If null, will sync up to the latest record.IgniteCheckedException - If failed to fsync.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 ptr)
ptr - Pointer for which it is safe to clear the log.int walArchiveSegments()
boolean reserved(WALPointer ptr)
ptr - Pointer to check.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.2.0 Release Date : September 15 2017