com.sleepycat.je.log
Class LatchedLogManager
java.lang.Object
com.sleepycat.je.log.LogManager
com.sleepycat.je.log.LatchedLogManager
- public class LatchedLogManager
- extends LogManager
The LatchedLogManager uses the latches to implement critical sections.
Method Summary |
void |
countObsoleteNodes(long lsn1,
LogEntryType type1,
boolean obsolete1,
long lsn2,
LogEntryType type2,
boolean obsolete2)
Count nodes as obsolete under the log write latch. |
void |
countObsoleteNodes(TrackedFileSummary[] summaries)
Counts file summary info under the log write latch. |
protected void |
flushInternal()
|
protected LogManager.LogResult |
logItem(LoggableObject item,
boolean isProvisional,
boolean flushRequired,
long oldNodeLsn,
boolean isDeletedNode,
int entrySize,
int itemSize,
boolean marshallOutsideLatch,
ByteBuffer marshalledBuffer,
UtilizationTracker tracker)
|
Methods inherited from class com.sleepycat.je.log.LogManager |
countObsoleteNodesInternal, countObsoleteNodesInternal, flush, get, getLogEntry, getLogEntry, loadStats, log, log, logForceFlush, logInternal, putIntoBuffer, resetPool |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LatchedLogManager
public LatchedLogManager(EnvironmentImpl envImpl,
boolean readOnly)
throws DatabaseException
- There is a single log manager per database environment.
logItem
protected LogManager.LogResult logItem(LoggableObject item,
boolean isProvisional,
boolean flushRequired,
long oldNodeLsn,
boolean isDeletedNode,
int entrySize,
int itemSize,
boolean marshallOutsideLatch,
ByteBuffer marshalledBuffer,
UtilizationTracker tracker)
throws IOException,
DatabaseException
- Specified by:
logItem
in class LogManager
- Throws:
IOException
DatabaseException
flushInternal
protected void flushInternal()
throws LogException,
DatabaseException
- Specified by:
flushInternal
in class LogManager
- Throws:
LogException
DatabaseException
countObsoleteNodes
public void countObsoleteNodes(long lsn1,
LogEntryType type1,
boolean obsolete1,
long lsn2,
LogEntryType type2,
boolean obsolete2)
throws DatabaseException
- Description copied from class:
LogManager
- Count nodes as obsolete under the log write latch. This is only used
during txn abort processing. Two nodes may be counted, so that we only
need to acquire the latch once. This is done here because the log write
latch is managed here, and all utilization counting must be performed
under the log write latch.
- Specified by:
countObsoleteNodes
in class LogManager
- Throws:
DatabaseException
- See Also:
LogManager#countObsoleteLNs
countObsoleteNodes
public void countObsoleteNodes(TrackedFileSummary[] summaries)
throws DatabaseException
- Description copied from class:
LogManager
- Counts file summary info under the log write latch. This is only used
during txn commit processing.
- Specified by:
countObsoleteNodes
in class LogManager
- Throws:
DatabaseException
- See Also:
LogManager.countObsoleteNodes(long, com.sleepycat.je.log.LogEntryType, boolean, long, com.sleepycat.je.log.LogEntryType, boolean)
Copyright 2004 Sleepycat, Inc. All Rights Reserved.