com.sleepycat.je.log
Class CheckpointMonitor
java.lang.Object
com.sleepycat.je.log.CheckpointMonitor
class CheckpointMonitor
- extends Object
The checkpoint monitor saves information about log writes to decide when a
checkpoint is needed.
Method Summary |
(package private) void |
activate()
Wake up the checkpointer. |
(package private) boolean |
recordLogWrite(int entrySize,
LoggableObject item)
Update checkpoint driving information. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CheckpointMonitor
CheckpointMonitor(EnvironmentImpl envImpl)
throws DatabaseException
- Throws:
DatabaseException
recordLogWrite
boolean recordLogWrite(int entrySize,
LoggableObject item)
- Update checkpoint driving information. Call from within the log write
latch.
- Returns:
- true if a checkpoint is needed.
activate
void activate()
- Wake up the checkpointer. Note that the check on bytesWritten is
actually within a latched period.
Copyright 2004-2005 Sleepycat, Inc. All Rights Reserved.