|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.log.LogManager
com.sleepycat.je.log.LatchedLogManager
public class LatchedLogManager
The LatchedLogManager uses the latches to implement critical sections.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sleepycat.je.log.LogManager |
---|
LogManager.LogResult |
Field Summary |
---|
Fields inherited from class com.sleepycat.je.log.LogManager |
---|
envImpl, logBufferPool, logWriteLatch |
Constructor Summary | |
---|---|
LatchedLogManager(EnvironmentImpl envImpl,
boolean readOnly)
There is a single log manager per database environment. |
Method Summary | |
---|---|
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 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. |
Methods inherited from class com.sleepycat.je.log.LogManager |
---|
countObsoleteINsInternal, countObsoleteNodeInternal, countObsoleteNodesInternal, flush, flushNoSync, get, getChecksumOnRead, getLastLsnAtRecovery, getLogEntry, getLogEntry, getLogSource, getUnflushableTrackedSummaryInternal, loadEndOfLogStatInternal, loadStats, log, log, logForceFlip, logForceFlush, logInternal, putIntoBuffer, removeTrackedFileInternal, resetPool, setLastLsnAtRecovery, setReadHook |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LatchedLogManager(EnvironmentImpl envImpl, boolean readOnly) throws DatabaseException
DatabaseException
Method Detail |
---|
protected 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 LogManager
java.io.IOException
DatabaseException
protected void flushInternal() throws LogException, DatabaseException
flushInternal
in class LogManager
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) throws DatabaseException
LogManager
countObsoleteNode
in class LogManager
DatabaseException
LogManager#countObsoleteLNs
public void countObsoleteNodes(java.util.Collection summaries) throws DatabaseException
LogManager
countObsoleteNodes
in class LogManager
DatabaseException
LogManager.countObsoleteNodes(java.util.Collection)
public void countObsoleteINs(java.util.List lsnList) throws DatabaseException
LogManager
countObsoleteINs
in class LogManager
DatabaseException
LogManager.countObsoleteINs(java.util.List)
public void loadEndOfLogStat(EnvironmentStats stats) throws DatabaseException
loadEndOfLogStat
in class LogManager
DatabaseException
LogManager.loadEndOfLogStat(com.sleepycat.je.EnvironmentStats)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |