com.sleepycat.je.log
Class CheckpointMonitor

java.lang.Object
  extended bycom.sleepycat.je.log.CheckpointMonitor

class CheckpointMonitor
extends Object

The checkpoint monitor saves information about log writes to decide when a checkpoint is needed.


Constructor Summary
(package private) CheckpointMonitor(EnvironmentImpl envImpl)
           
 
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
 

Constructor Detail

CheckpointMonitor

CheckpointMonitor(EnvironmentImpl envImpl)
            throws DatabaseException
Method Detail

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.