com.sleepycat.je.log
Interface LoggableObject

All Superinterfaces:
LogWritable
All Known Implementing Classes:
BIN, BINDelta, CheckpointEnd, CheckpointStart, DBIN, DbTree, DeletedDupLNLogEntry, DIN, DupCountLN, FileHeader, FileSummaryLN, IN, INDeleteInfo, INDupDeleteInfo, INLogEntry, LN, LNLogEntry, MapLN, NameLN, Node, Tracer, TxnAbort, TxnCommit, TxnEnd, TxnPrepare

public interface LoggableObject
extends LogWritable

A class that implements LoggableObject can be stored as a JE log entry.


Method Summary
 boolean countAsObsoleteWhenLogged()
          Returns true if this item should be counted as obsoleted when logged.
 LogEntryType getLogType()
          All objects that are reponsible for a generating a type of log entry must implement this.
 boolean marshallOutsideWriteLatch()
          Return true if this item can be marshalled outside the log write latch.
 void postLogWork(long justLoggedLsn)
          Do any processing we need to do after logging, while under the logging latch.
 
Methods inherited from interface com.sleepycat.je.log.LogWritable
getLogSize, writeToLog
 

Method Detail

getLogType

LogEntryType getLogType()
All objects that are reponsible for a generating a type of log entry must implement this.

Returns:
the type of log entry

postLogWork

void postLogWork(long justLoggedLsn)
                 throws DatabaseException
Do any processing we need to do after logging, while under the logging latch.

Throws:
DatabaseException

marshallOutsideWriteLatch

boolean marshallOutsideWriteLatch()
Return true if this item can be marshalled outside the log write latch.


countAsObsoleteWhenLogged

boolean countAsObsoleteWhenLogged()
Returns true if this item should be counted as obsoleted when logged. This currently applies to deleted LNs only.



Copyright 2004-2005 Sleepycat, Inc. All Rights Reserved.