| com.sleepycat.je.log.Loggable
All known Subclasses: com.sleepycat.je.txn.Txn, com.sleepycat.je.tree.INDupDeleteInfo, com.sleepycat.je.dbi.DbTree, com.sleepycat.je.dbi.DatabaseImpl, com.sleepycat.je.tree.Tree, com.sleepycat.je.tree.Node, com.sleepycat.je.tree.DBIN, com.sleepycat.je.txn.TxnPrepare, com.sleepycat.je.tree.LN, com.sleepycat.je.tree.IN, com.sleepycat.je.cleaner.PackedOffsets, com.sleepycat.je.dbi.DatabaseId, com.sleepycat.je.recovery.CheckpointEnd, com.sleepycat.je.recovery.CheckpointStart, com.sleepycat.je.utilint.Tracer, com.sleepycat.je.cleaner.FileSummary, com.sleepycat.je.utilint.VLSN, com.sleepycat.je.txn.TxnEnd, com.sleepycat.je.tree.ChildReference, com.sleepycat.je.tree.BINDelta, com.sleepycat.je.tree.INDeleteInfo, com.sleepycat.je.tree.DeltaInfo, com.sleepycat.je.log.FileHeader, com.sleepycat.je.tree.BIN,
Loggable | public interface Loggable (Code) | | A class that implements Loggable knows how to read and write itself into
a ByteBuffer in a format suitable for the JE log or JE replication messages.
|
Method Summary | |
public void | dumpLog(StringBuffer sb, boolean verbose) Write the object into the string buffer for log dumping. | public int | getLogSize() | public long | getTransactionId() the transaction id embedded within this loggable object. | public void | readFromLog(ByteBuffer itemBuffer, byte entryTypeVersion) Initialize this object from the data in itemBuf. | public void | writeToLog(ByteBuffer logBuffer) Serialize this object into the buffer. |
dumpLog | public void dumpLog(StringBuffer sb, boolean verbose)(Code) | | 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 Parameters: verbose - if true, dump the full, verbose version |
getLogSize | public int getLogSize()(Code) | | number of bytes used to store this object. |
getTransactionId | public long getTransactionId()(Code) | | the transaction id embedded within this loggable object. Objectsthat have no transaction id should return 0. |
readFromLog | public void readFromLog(ByteBuffer itemBuffer, byte entryTypeVersion) throws LogException(Code) | | Initialize this object from the data in itemBuf.
Parameters: itemBuf - the source buffer |
writeToLog | public void writeToLog(ByteBuffer logBuffer)(Code) | | Serialize this object into the buffer.
Parameters: logBuffer - is the destination buffer |
|
|