|
|||||||||
| 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 LogEntryDatabaseExceptionpublic long getObsoleteLsn()
public StringBuffer dumpEntry(StringBuffer sb,
boolean verbose)
dumpEntry in interface LogEntrypublic Object getMainItem()
getMainItem in interface LogEntry
public Object clone()
throws CloneNotSupportedException
clone in interface LogEntryclone in class ObjectCloneNotSupportedExceptionpublic boolean isTransactional()
isTransactional in interface LogEntryLogEntry.isTransactional()public long getTransactionId()
getTransactionId in interface LogEntryLogEntry.getTransactionId()public LogEntryType getLogType()
LoggableObject
getLogType in interface LoggableObjectLoggableObject.getLogType()public boolean marshallOutsideWriteLatch()
LoggableObject
marshallOutsideWriteLatch in interface LoggableObjectAsk the in if it can be marshalled outside the log write latch.public boolean countAsObsoleteWhenLogged()
LoggableObject
countAsObsoleteWhenLogged in interface LoggableObjectLoggableObject.countAsObsoleteWhenLogged()public void postLogWork(long justLoggedLsn)
LoggableObject
postLogWork in interface LoggableObjectLoggableObject.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 IN getIN(EnvironmentImpl env)
throws DatabaseException
getIN in interface INContainingEntryDatabaseExceptionpublic long getNodeId()
NodeLogEntry
getNodeId in interface NodeLogEntryNodeLogEntry.getNodeId()public DatabaseId getDbId()
getDbId in interface INContainingEntryINContainingEntry.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 | ||||||||