|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.log.entry.INLogEntry
public class INLogEntry
INLogEntry embodies all IN log entries. These entries contain an IN and a databaseId. This class can both write out an entry and read one in.
Constructor Summary | |
---|---|
INLogEntry(Class logClass)
Construct a log entry for reading. |
|
INLogEntry(IN in)
Construct a log entry for writing to the log. |
Method Summary | |
---|---|
Object |
clone()
|
boolean |
countAsObsoleteWhenLogged()
Returns true if this item should be counted as obsoleted when logged. |
StringBuffer |
dumpEntry(StringBuffer sb,
boolean verbose)
Print out the contents of an entry. |
DatabaseId |
getDbId()
|
IN |
getIN(EnvironmentImpl env)
|
int |
getLogSize()
|
LogEntryType |
getLogType()
All objects that are reponsible for a generating a type of log entry must implement this. |
long |
getLsnOfIN(long lastReadLsn)
|
Object |
getMainItem()
|
long |
getNodeId()
Returns the node ID. |
long |
getObsoleteLsn()
Returns the LSN of the prior version of this node. |
long |
getTransactionId()
|
boolean |
isTransactional()
|
boolean |
marshallOutsideWriteLatch()
Return true if this item can be marshalled outside the log write latch. |
void |
postLogWork(long justLoggedLsn)
Do any processing we need to do after logging, while under the logging latch. |
void |
readEntry(ByteBuffer entryBuffer,
int entrySize,
byte entryTypeVersion,
boolean readFullItem)
Read in an IN 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 INLogEntry(Class logClass)
public INLogEntry(IN in)
Method Detail |
---|
public void readEntry(ByteBuffer entryBuffer, int entrySize, byte entryTypeVersion, boolean readFullItem) throws DatabaseException
readEntry
in interface LogEntry
DatabaseException
public long getObsoleteLsn()
public StringBuffer dumpEntry(StringBuffer sb, boolean verbose)
dumpEntry
in interface LogEntry
public Object getMainItem()
getMainItem
in interface LogEntry
public Object clone() throws CloneNotSupportedException
clone
in interface LogEntry
clone
in class Object
CloneNotSupportedException
public boolean isTransactional()
isTransactional
in interface LogEntry
LogEntry.isTransactional()
public long getTransactionId()
getTransactionId
in interface LogEntry
LogEntry.getTransactionId()
public LogEntryType getLogType()
LoggableObject
getLogType
in interface LoggableObject
LoggableObject.getLogType()
public boolean marshallOutsideWriteLatch()
LoggableObject
marshallOutsideWriteLatch
in interface LoggableObject
Ask the in if it can be marshalled outside the log write latch.
public boolean countAsObsoleteWhenLogged()
LoggableObject
countAsObsoleteWhenLogged
in interface LoggableObject
LoggableObject.countAsObsoleteWhenLogged()
public void postLogWork(long justLoggedLsn)
LoggableObject
postLogWork
in interface LoggableObject
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 IN getIN(EnvironmentImpl env) throws DatabaseException
getIN
in interface INContainingEntry
DatabaseException
public long getNodeId()
NodeLogEntry
getNodeId
in interface NodeLogEntry
NodeLogEntry.getNodeId()
public DatabaseId getDbId()
getDbId
in interface INContainingEntry
INContainingEntry.getDbId()
public long getLsnOfIN(long lastReadLsn)
getLsnOfIN
in interface INContainingEntry
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |