com.sleepycat.je.log
Interface LogReadable

All Known Implementing Classes:
AutoTxn, BIN, BINDelta, CheckpointEnd, CheckpointStart, ChildReference, DatabaseId, DatabaseImpl, DBIN, DbTree, DeltaInfo, DIN, DupCountLN, FileHeader, FileSummary, FileSummaryLN, IN, INDeleteInfo, INDupDeleteInfo, LN, MapLN, NameLN, Node, PackedOffsets, Tracer, TrackedFileSummary, Tree, Txn, TxnAbort, TxnCommit, TxnEnd, TxnPrepare

public interface LogReadable

A class that implements LogReadable knows how to read itself from the JE log.


Method Summary
 void dumpLog(StringBuffer sb, boolean verbose)
          Write the object into the string buffer for log dumping.
 long getTransactionId()
           
 boolean logEntryIsTransactional()
           
 void readFromLog(ByteBuffer itemBuffer, byte entryTypeVersion)
          Initialize this object from the data in itemBuf.
 

Method Detail

readFromLog

void readFromLog(ByteBuffer itemBuffer,
                 byte entryTypeVersion)
                 throws LogException
Initialize this object from the data in itemBuf.

Parameters:
itemBuf - the source buffer
Throws:
LogException

dumpLog

void dumpLog(StringBuffer sb,
             boolean verbose)
Write the object into the string buffer for log dumping. Each object should be dumped without indentation or new lines and should be valid XML.

Parameters:
sb - destination string buffer
verbose - if true, dump the full, verbose version

logEntryIsTransactional

boolean logEntryIsTransactional()
Returns:
true if the LogEntry is a transactional log entry type.

getTransactionId

long getTransactionId()
Returns:
return the transaction id if this log entry is transactional, 0 otherwise.


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