|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.log.entry.LNLogEntry
public class LNLogEntry
LNLogEntry embodies all LN transactional log entries. These entries contain:
ln databaseid key abortLsn -- if transactional abortKnownDeleted -- if transactional txn -- if transactional
Constructor Summary | |
---|---|
LNLogEntry(Class logClass,
boolean isTransactional)
|
|
LNLogEntry(LogEntryType entryType,
LN ln,
DatabaseId dbId,
byte[] key,
long abortLsn,
boolean abortKnownDeleted,
Txn txn)
|
Method Summary | |
---|---|
Object |
clone()
|
boolean |
countAsObsoleteWhenLogged()
Returns true for a deleted LN to count it immediately as obsolete. |
StringBuffer |
dumpEntry(StringBuffer sb,
boolean verbose)
Print out the contents of an entry. |
boolean |
getAbortKnownDeleted()
|
long |
getAbortLsn()
|
DatabaseId |
getDbId()
|
byte[] |
getDupKey()
|
byte[] |
getKey()
|
LN |
getLN()
|
int |
getLogSize()
|
LogEntryType |
getLogType()
All objects that are reponsible for a generating a type of log entry must implement this. |
Object |
getMainItem()
|
long |
getNodeId()
Returns the node ID. |
long |
getTransactionId()
|
Long |
getTxnId()
|
Txn |
getUserTxn()
|
boolean |
isTransactional()
|
boolean |
marshallOutsideWriteLatch()
Return true if this item can be marshalled outside the log write latch. |
void |
postLogWork(long justLoggedLsn)
For LN entries, we need to record the latest LSN for that node with the owning transaction, within the protection of the log latch. |
void |
readEntry(ByteBuffer entryBuffer,
int entrySize,
byte entryTypeVersion,
boolean readFullItem)
Read in an log entry. |
void |
writeToLog(ByteBuffer destBuffer)
Serialize this object into the buffer. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LNLogEntry(Class logClass, boolean isTransactional)
public LNLogEntry(LogEntryType entryType, LN ln, DatabaseId dbId, byte[] key, long abortLsn, boolean abortKnownDeleted, Txn txn)
Method Detail |
---|
public void readEntry(ByteBuffer entryBuffer, int entrySize, byte entryTypeVersion, boolean readFullItem) throws DatabaseException
LogEntry
readEntry
in interface LogEntry
DatabaseException
LogEntry.readEntry(java.nio.ByteBuffer, int, byte, boolean)
public StringBuffer dumpEntry(StringBuffer sb, boolean verbose)
LogEntry
dumpEntry
in interface LogEntry
LogEntry.dumpEntry(java.lang.StringBuffer, boolean)
public Object getMainItem()
getMainItem
in interface LogEntry
LogEntry.getMainItem()
public Object clone() throws CloneNotSupportedException
clone
in interface LogEntry
clone
in class Object
CloneNotSupportedException
LogEntry.clone()
public boolean isTransactional()
isTransactional
in interface LogEntry
LogEntry.isTransactional()
public long getTransactionId()
getTransactionId
in interface LogEntry
LogEntry.getTransactionId()
public long getNodeId()
NodeLogEntry
getNodeId
in interface NodeLogEntry
NodeLogEntry.getNodeId()
public LogEntryType getLogType()
LoggableObject
getLogType
in interface LoggableObject
LoggableObject.getLogType()
public boolean marshallOutsideWriteLatch()
LoggableObject
marshallOutsideWriteLatch
in interface LoggableObject
Ask the ln if it can be marshalled outside the log write latch.
public boolean countAsObsoleteWhenLogged()
countAsObsoleteWhenLogged
in interface LoggableObject
LoggableObject.countAsObsoleteWhenLogged()
public void postLogWork(long justLoggedLsn) throws DatabaseException
postLogWork
in interface LoggableObject
DatabaseException
LoggableObject.postLogWork(long)
public int getLogSize()
getLogSize
in interface LogWritable
LogWritable.getLogSize()
public void writeToLog(ByteBuffer destBuffer)
LogWritable
writeToLog
in interface LogWritable
destBuffer
- is the destination bufferLogWritable.writeToLog(java.nio.ByteBuffer)
public LN getLN()
public DatabaseId getDbId()
public byte[] getKey()
public byte[] getDupKey()
public long getAbortLsn()
public boolean getAbortKnownDeleted()
public Long getTxnId()
public Txn getUserTxn()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |