
public class OMemoryWriteAheadLog extends OAbstractWriteAheadLog
closed, lastCheckpoint, syncObject| Constructor and Description |
|---|
OMemoryWriteAheadLog() |
checkForClose, getLastCheckpoint, logFullCheckpointEnd, logFullCheckpointStart, logFuzzyCheckPointEnd, logFuzzyCheckPointStartpublic OLogSequenceNumber begin() throws IOException
IOExceptionpublic OLogSequenceNumber end()
public OLogSequenceNumber getOldestTxLsn()
public void flush()
public OLogSequenceNumber logAtomicOperationStartRecord(boolean isRollbackSupported, OOperationUnitId unitId) throws IOException
IOExceptionpublic OLogSequenceNumber logAtomicOperationEndRecord(OOperationUnitId operationUnitId, boolean rollback, OLogSequenceNumber startLsn, Map<String,OAtomicOperationMetadata<?>> atomicOperationMetadata) throws IOException
IOExceptionpublic OLogSequenceNumber log(OWALRecord record) throws IOException
IOExceptionpublic void truncate()
throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic void close(boolean flush)
throws IOException
IOExceptionpublic void delete()
throws IOException
IOExceptionpublic void delete(boolean flush)
throws IOException
IOExceptionpublic OWALRecord read(OLogSequenceNumber lsn) throws IOException
IOExceptionpublic OLogSequenceNumber next(OLogSequenceNumber lsn) throws IOException
IOExceptionpublic OLogSequenceNumber getFlushedLsn()
public boolean cutTill(OLogSequenceNumber lsn)
OWriteAheadLogOWriteAheadLog.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.public void addFullCheckpointListener(OFullCheckpointRequestListener listener)
public void removeFullCheckpointListener(OFullCheckpointRequestListener listener)
public void moveLsnAfter(OLogSequenceNumber lsn)
OWriteAheadLogDO NOT REMOVE IT, USED IN ENTERPRISE STORAGE.
public void addCutTillLimit(OLogSequenceNumber lsn)
OWriteAheadLoglsn - LSN after which cut of the WAL is not allowed.OWriteAheadLog.removeCutTillLimit(OLogSequenceNumber),
OWriteAheadLog.cutTill(OLogSequenceNumber)public void removeCutTillLimit(OLogSequenceNumber lsn)
OWriteAheadLoglsn - LSN after which cut of the WAL is not allowed.OWriteAheadLog.removeCutTillLimit(OLogSequenceNumber),
OWriteAheadLog.cutTill(OLogSequenceNumber)public File[] nonActiveSegments(long fromSegment)
public long activeSegment()
public long getPreferredSegmentCount()
public void addLowDiskSpaceListener(OLowDiskSpaceListener listener)
public void removeLowDiskSpaceListener(OLowDiskSpaceListener listener)
public boolean appendNewSegment()
OWriteAheadLogtrue if new segment is added, and false otherwise.Copyright © 2009–2025 OrientDB. All rights reserved.