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.
|
WALIterator |
replay(WALPointer start)
Invoke this method to iterate over the written log entries.
|
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.
|
onDisconnected, onKernalStart, 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 - IfStorageExceptionWALIterator 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.IgniteCheckedExceptionint truncate(WALPointer ptr)
ptr - Pointer for which it is safe to clear the log.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017