
public interface OWriteAheadLog
| Modifier and Type | Field and Description |
|---|---|
static String |
MASTER_RECORD_EXTENSION |
static String |
WAL_SEGMENT_EXTENSION |
static final String MASTER_RECORD_EXTENSION
static final String WAL_SEGMENT_EXTENSION
OLogSequenceNumber logFuzzyCheckPointStart(OLogSequenceNumber flushedLsn) throws IOException
IOExceptionOLogSequenceNumber logFuzzyCheckPointEnd() throws IOException
IOExceptionOLogSequenceNumber logFullCheckpointStart() throws IOException
IOExceptionOLogSequenceNumber logFullCheckpointEnd() throws IOException
IOExceptionOLogSequenceNumber getLastCheckpoint()
OLogSequenceNumber begin()
OLogSequenceNumber begin(long segmentId) throws IOException
IOExceptionOLogSequenceNumber end()
void flush()
OLogSequenceNumber logAtomicOperationStartRecord(boolean isRollbackSupported, long unitId) throws IOException
IOExceptionOLogSequenceNumber logAtomicOperationEndRecord(long operationUnitId, boolean rollback, OLogSequenceNumber startLsn, Map<String,OAtomicOperationMetadata<?>> atomicOperationMetadata) throws IOException
IOExceptionOLogSequenceNumber log(OWriteableWALRecord record) throws IOException
IOExceptionvoid close()
throws IOException
IOExceptionvoid close(boolean flush)
throws IOException
IOExceptionvoid delete()
throws IOException
IOExceptionList<OWriteableWALRecord> read(OLogSequenceNumber lsn, int limit) throws IOException
IOExceptionList<OWriteableWALRecord> next(OLogSequenceNumber lsn, int limit) throws IOException
IOExceptionOLogSequenceNumber getFlushedLsn()
boolean cutTill(OLogSequenceNumber lsn) throws IOException
addCutTillLimit(OLogSequenceNumber) then "protected" part of WAL will be preserved for
sure.lsn - Maximum value of LSN till WAL will be cut.true if some portion of WAL will be cut and false if WAL left untouched.IOExceptionboolean cutAllSegmentsSmallerThan(long segmentId)
throws IOException
IOExceptionvoid addFullCheckpointListener(OCheckpointRequestListener listener)
void removeFullCheckpointListener(OCheckpointRequestListener listener)
void addLowDiskSpaceListener(OLowDiskSpaceListener listener)
void removeLowDiskSpaceListener(OLowDiskSpaceListener listener)
void moveLsnAfter(OLogSequenceNumber lsn) throws IOException
IOExceptionvoid addCutTillLimit(OLogSequenceNumber lsn)
lsn - LSN after which cut of the WAL is not allowed.removeCutTillLimit(OLogSequenceNumber),
cutTill(OLogSequenceNumber)void removeCutTillLimit(OLogSequenceNumber lsn)
lsn - LSN after which cut of the WAL is not allowed.removeCutTillLimit(OLogSequenceNumber),
cutTill(OLogSequenceNumber)File[] nonActiveSegments(long fromSegment)
long[] nonActiveSegments()
long activeSegment()
void addEventAt(OLogSequenceNumber lsn, Runnable event)
lsn - the LSN to fire at.event - the event to fire.boolean appendNewSegment()
true if new segment is added, and false otherwise.Copyright © 2009–2025 OrientDB. All rights reserved.