public class LatchedLogManager extends LogManager
envImpl, logBufferPool, logWriteLatch
Constructor and Description |
---|
LatchedLogManager(EnvironmentImpl envImpl,
boolean readOnly)
There is a single log manager per database environment.
|
Modifier and Type | Method and Description |
---|---|
void |
countObsoleteDb(DatabaseImpl db) |
void |
countObsoleteINs(java.util.List<java.lang.Long> lsnList,
DatabaseImpl nodeDb)
Counts the given obsolete IN LSNs under the log write latch.
|
void |
countObsoleteNode(long lsn,
LogEntryType type,
int size,
DatabaseImpl nodeDb)
Count node as obsolete under the log write latch.
|
protected void |
flushInternal() |
TrackedFileSummary |
getUnflushableTrackedSummary(long file)
Returns a tracked summary for the given file which will not be flushed.
|
void |
loadEndOfLogStat(EnvironmentStats stats) |
boolean |
removeDbFileSummary(DatabaseImpl db,
java.lang.Long fileNum) |
void |
removeTrackedFile(TrackedFileSummary tfs)
Removes the tracked summary for the given file.
|
void |
transferToUtilizationTracker(LocalUtilizationTracker localTracker) |
flush, flushNoSync, get, getByteBufferFromLog, getChecksumOnRead, getLastLsnAtRecovery, getLogEntry, getLogSource, loadStats, log, log, log, log, logForceFlip, logForceFlush, marshallIntoBuffer, multiLog, removeTrackedFileInternal, resetPool, setLastLsnAtRecovery, setReadHook
public LatchedLogManager(EnvironmentImpl envImpl, boolean readOnly) throws DatabaseException
DatabaseException
protected void flushInternal() throws LogException, DatabaseException
LogException
DatabaseException
public TrackedFileSummary getUnflushableTrackedSummary(long file) throws DatabaseException
LogManager
getUnflushableTrackedSummary
in class LogManager
DatabaseException
LogManager#getUnflusableTrackedSummary
public void removeTrackedFile(TrackedFileSummary tfs) throws DatabaseException
LogManager
removeTrackedFile
in class LogManager
DatabaseException
LogManager.removeTrackedFile(com.sleepycat.je.cleaner.TrackedFileSummary)
public void countObsoleteNode(long lsn, LogEntryType type, int size, DatabaseImpl nodeDb) throws DatabaseException
LogManager
countObsoleteNode
in class LogManager
DatabaseException
LogManager#countObsoleteLNs
public void transferToUtilizationTracker(LocalUtilizationTracker localTracker) throws DatabaseException
transferToUtilizationTracker
in class LogManager
DatabaseException
LogManager.transferToUtilizationTracker(com.sleepycat.je.cleaner.LocalUtilizationTracker)
public void countObsoleteINs(java.util.List<java.lang.Long> lsnList, DatabaseImpl nodeDb) throws DatabaseException
LogManager
countObsoleteINs
in class LogManager
DatabaseException
LogManager.countObsoleteINs(java.util.List<java.lang.Long>, com.sleepycat.je.dbi.DatabaseImpl)
public void countObsoleteDb(DatabaseImpl db) throws DatabaseException
countObsoleteDb
in class LogManager
DatabaseException
LogManager.countObsoleteDb(com.sleepycat.je.dbi.DatabaseImpl)
public boolean removeDbFileSummary(DatabaseImpl db, java.lang.Long fileNum) throws DatabaseException
removeDbFileSummary
in class LogManager
DatabaseException
LogManager.removeDbFileSummary(com.sleepycat.je.dbi.DatabaseImpl, java.lang.Long)
public void loadEndOfLogStat(EnvironmentStats stats) throws DatabaseException
loadEndOfLogStat
in class LogManager
DatabaseException
LogManager.loadEndOfLogStat(com.sleepycat.je.EnvironmentStats)