com.sleepycat.je.log
Class SyncedLogManager

java.lang.Object
  extended bycom.sleepycat.je.log.LogManager
      extended bycom.sleepycat.je.log.SyncedLogManager

public class SyncedLogManager
extends LogManager

The SyncedLogManager uses the synchronized keyword to implement protected regions.


Nested Class Summary
 
Nested classes inherited from class com.sleepycat.je.log.LogManager
LogManager.LogResult
 
Field Summary
 
Fields inherited from class com.sleepycat.je.log.LogManager
envImpl, HEADER_BYTES, HEADER_CHECKSUM_OFFSET, HEADER_CONTENT_BYTES, HEADER_ENTRY_TYPE_OFFSET, HEADER_PREV_OFFSET, HEADER_SIZE_OFFSET, HEADER_VERSION_OFFSET, logBufferPool, logWriteLatch
 
Constructor Summary
SyncedLogManager(EnvironmentImpl envImpl, boolean readOnly)
          There is a single log manager per database environment.
 
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
 

Constructor Detail

SyncedLogManager

public SyncedLogManager(EnvironmentImpl envImpl,
                        boolean readOnly)
                 throws DatabaseException
There is a single log manager per database environment.

Method Detail

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.