|
|||||||||
| 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 LogEntryDatabaseExceptionLogEntry.readEntry(java.nio.ByteBuffer, int, byte, boolean)
public StringBuffer dumpEntry(StringBuffer sb,
boolean verbose)
LogEntry
dumpEntry in interface LogEntryLogEntry.dumpEntry(java.lang.StringBuffer, boolean)public Object getMainItem()
getMainItem in interface LogEntryLogEntry.getMainItem()
public Object clone()
throws CloneNotSupportedException
clone in interface LogEntryclone in class ObjectCloneNotSupportedExceptionLogEntry.clone()public boolean isTransactional()
isTransactional in interface LogEntryLogEntry.isTransactional()public long getTransactionId()
getTransactionId in interface LogEntryLogEntry.getTransactionId()public long getNodeId()
NodeLogEntry
getNodeId in interface NodeLogEntryNodeLogEntry.getNodeId()public LogEntryType getLogType()
LoggableObject
getLogType in interface LoggableObjectLoggableObject.getLogType()public boolean marshallOutsideWriteLatch()
LoggableObject
marshallOutsideWriteLatch in interface LoggableObjectAsk the ln if it can be marshalled outside the log write latch.public boolean countAsObsoleteWhenLogged()
countAsObsoleteWhenLogged in interface LoggableObjectLoggableObject.countAsObsoleteWhenLogged()
public void postLogWork(long justLoggedLsn)
throws DatabaseException
postLogWork in interface LoggableObjectDatabaseExceptionLoggableObject.postLogWork(long)public int getLogSize()
getLogSize in interface LogWritableLogWritable.getLogSize()public void writeToLog(ByteBuffer destBuffer)
LogWritable
writeToLog in interface LogWritabledestBuffer - 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 | ||||||||