public class SyncedLogManager extends LogManager
envImpl, logBufferPool, logWriteLatch| Constructor and Description |
|---|
SyncedLogManager(EnvironmentImpl envImpl,
boolean readOnly)
There is a single log manager per database environment.
|
| Modifier and Type | Method and Description |
|---|---|
void |
countObsoleteINs(java.util.List lsnList)
Counts the given obsolete IN LSNs under the log write latch.
|
void |
countObsoleteNode(long lsn,
LogEntryType type,
int size)
Count node as obsolete under the log write latch.
|
void |
countObsoleteNodes(java.util.Collection summaries)
Counts file summary info 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) |
protected com.sleepycat.je.log.LogManager.LogResult |
logItem(LogEntryHeader header,
LogEntry item,
boolean isProvisional,
boolean flushRequired,
boolean forceNewLogFile,
long oldNodeLsn,
int oldNodeSize,
boolean marshallOutsideLatch,
java.nio.ByteBuffer marshalledBuffer,
UtilizationTracker tracker,
boolean shouldReplicate) |
void |
removeTrackedFile(TrackedFileSummary tfs)
Removes the tracked summary for the given file.
|
countObsoleteINsInternal, countObsoleteNodeInternal, countObsoleteNodesInternal, flush, flushNoSync, get, getChecksumOnRead, getLastLsnAtRecovery, getLogEntry, getLogSource, getUnflushableTrackedSummaryInternal, loadStats, log, log, logForceFlip, logForceFlush, logInternal, removeTrackedFileInternal, resetPool, setLastLsnAtRecovery, setReadHookpublic SyncedLogManager(EnvironmentImpl envImpl, boolean readOnly) throws DatabaseException
DatabaseExceptionprotected com.sleepycat.je.log.LogManager.LogResult logItem(LogEntryHeader header, LogEntry item, boolean isProvisional, boolean flushRequired, boolean forceNewLogFile, long oldNodeLsn, int oldNodeSize, boolean marshallOutsideLatch, java.nio.ByteBuffer marshalledBuffer, UtilizationTracker tracker, boolean shouldReplicate) throws java.io.IOException, DatabaseException
logItem in class LogManagerjava.io.IOExceptionDatabaseExceptionprotected void flushInternal()
throws LogException,
DatabaseException
flushInternal in class LogManagerLogExceptionDatabaseExceptionpublic TrackedFileSummary getUnflushableTrackedSummary(long file) throws DatabaseException
LogManagergetUnflushableTrackedSummary in class LogManagerDatabaseExceptionLogManager.getUnflushableTrackedSummary(long)public void removeTrackedFile(TrackedFileSummary tfs) throws DatabaseException
LogManagerremoveTrackedFile in class LogManagerDatabaseExceptionLogManager.removeTrackedFile(com.sleepycat.je.cleaner.TrackedFileSummary)public void countObsoleteNode(long lsn,
LogEntryType type,
int size)
throws DatabaseException
LogManagercountObsoleteNode in class LogManagerDatabaseExceptionLogManager#countObsoleteLNspublic void countObsoleteNodes(java.util.Collection summaries)
throws DatabaseException
LogManagercountObsoleteNodes in class LogManagerDatabaseExceptionLogManager.countObsoleteNodes(java.util.Collection)public void countObsoleteINs(java.util.List lsnList)
throws DatabaseException
LogManagercountObsoleteINs in class LogManagerDatabaseExceptionLogManager.countObsoleteINs(java.util.List)public void loadEndOfLogStat(EnvironmentStats stats) throws DatabaseException
loadEndOfLogStat in class LogManagerDatabaseExceptionLogManager.loadEndOfLogStat(com.sleepycat.je.EnvironmentStats)