com.sleepycat.je.log
Class LogItem

java.lang.Object
  extended by com.sleepycat.je.log.LogItem
Direct Known Subclasses:
INLogItem

public class LogItem
extends Object

Item parameters that apply to a single logged item. Passed to LogManager log methods and to beforeLog and afterLog methods.


Field Summary
protected  ByteBuffer buffer
           
 LogEntry entry
          Object to be marshaled and logged.
 LogEntryHeader header
           
 long newLsn
          LSN of the new log entry.
 long oldLsn
          The previous version of the node to be counted as obsolete, or NULL_LSN if the entry is not a node or has no old LSN.
(package private)  int oldSize
           
 Provisional provisional
          Whether the logged entry should be processed during recovery.
 ReplicationContext repContext
          Whether the logged entry should be replicated.
 
Constructor Summary
LogItem()
           
 
Method Summary
 ByteBuffer getBuffer()
           
 LogEntryHeader getHeader()
           
 long getNewLsn()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entry

public LogEntry entry
Object to be marshaled and logged. Set by caller or beforeLog method.


oldLsn

public long oldLsn
The previous version of the node to be counted as obsolete, or NULL_LSN if the entry is not a node or has no old LSN. Set by caller or beforeLog method.


newLsn

public long newLsn
LSN of the new log entry. Is NULL_LSN if a BINDelta is logged. If not NULL_LSN for a tree node, is typically used to update the slot in the parent IN. Set by log or afterLog method.


provisional

public Provisional provisional
Whether the logged entry should be processed during recovery. Set by caller or beforeLog method.


repContext

public ReplicationContext repContext
Whether the logged entry should be replicated. Set by caller or beforeLog method.


header

public LogEntryHeader header

buffer

protected ByteBuffer buffer

oldSize

int oldSize
Constructor Detail

LogItem

public LogItem()
Method Detail

getHeader

public final LogEntryHeader getHeader()

getBuffer

public final ByteBuffer getBuffer()

getNewLsn

public final long getNewLsn()


Copyright (c) 2004-2010 Oracle. All rights reserved.