|
|||||||||
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.
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 |
countObsoleteDb(DatabaseImpl db)
|
void |
countObsoleteNode(long lsn,
LogEntryType type,
int size,
DatabaseImpl nodeDb,
boolean countExact)
Count node as obsolete under the log write latch. |
void |
countObsoleteNodeDupsAllowed(long lsn,
LogEntryType type,
int size,
DatabaseImpl nodeDb)
A flavor of countObsoleteNode which does not fire an assert if the offset has already been counted. |
protected void |
flushInternal()
|
TrackedFileSummary |
getUnflushableTrackedSummary(long file)
Returns a tracked summary for the given file which will not be flushed. |
void |
loadEndOfLogStat()
|
boolean |
removeDbFileSummary(DatabaseImpl db,
Long fileNum)
|
void |
removeTrackedFile(TrackedFileSummary tfs)
Removes the tracked summary for the given file. |
(package private) void |
serialLog(LogItem[] itemArray,
LogContext context)
Log one or more items while latched or synchronized in order to serialize log output. |
void |
transferToUtilizationTracker(LocalUtilizationTracker localTracker)
|
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 |
---|
void serialLog(LogItem[] itemArray, LogContext context) throws IOException, DatabaseException
LogManager
serialLog
in class LogManager
IOException
DatabaseException
protected void flushInternal() throws DatabaseException
flushInternal
in class LogManager
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, boolean countExact) throws DatabaseException
LogManager
countObsoleteNode
in class LogManager
DatabaseException
LogManager.countObsoleteNode(long, com.sleepycat.je.log.LogEntryType, int, com.sleepycat.je.dbi.DatabaseImpl, boolean)
public void countObsoleteNodeDupsAllowed(long lsn, LogEntryType type, int size, DatabaseImpl nodeDb) throws DatabaseException
LogManager
countObsoleteNodeDupsAllowed
in class LogManager
DatabaseException
LogManager.countObsoleteNodeDupsAllowed(long, com.sleepycat.je.log.LogEntryType, int, com.sleepycat.je.dbi.DatabaseImpl)
public void transferToUtilizationTracker(LocalUtilizationTracker localTracker) throws DatabaseException
transferToUtilizationTracker
in class LogManager
DatabaseException
LogManager.transferToUtilizationTracker(com.sleepycat.je.cleaner.LocalUtilizationTracker)
public void countObsoleteDb(DatabaseImpl db) throws DatabaseException
countObsoleteDb
in class LogManager
DatabaseException
LogManager.countObsoleteDb(com.sleepycat.je.dbi.DatabaseImpl)
public boolean removeDbFileSummary(DatabaseImpl db, Long fileNum) throws DatabaseException
removeDbFileSummary
in class LogManager
DatabaseException
LogManager.removeDbFileSummary(com.sleepycat.je.dbi.DatabaseImpl, java.lang.Long)
public void loadEndOfLogStat() throws DatabaseException
loadEndOfLogStat
in class LogManager
DatabaseException
LogManager.loadEndOfLogStat()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |