|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface to be implemented by all objects that can be written or read from the journalling log.
Method Summary | |
java.lang.String |
dump()
Returns a description of the entry for debugging purposes. |
int |
getLogSize()
Returns the size of the work load of this entry. |
byte |
getLogType()
Returns the type id of the log entry. |
long |
getLsn()
Returns the Lsn of the entry. |
long |
getTransactionId()
Returns the transaction id of the transaction to which the logged operation belongs. |
void |
read(java.nio.ByteBuffer in)
Read the entry. |
void |
redo()
Redo the underlying operation. |
void |
setLsn(long lsn)
Set the Lsn of the entry. |
void |
undo()
Undo, i.e. |
void |
write(java.nio.ByteBuffer out)
Write this entry to the specified ByteBuffer. |
Method Detail |
public byte getLogType()
LogEntryTypes
. The returned id is used by
JournalReader
to find the correct Loggable instance
that can handle the entry.
public long getTransactionId()
public long getLsn()
Lsn
of the entry.
public void setLsn(long lsn)
Lsn
of the entry.
lsn
- public void write(java.nio.ByteBuffer out)
out
- public void read(java.nio.ByteBuffer in)
in
- public int getLogSize()
public void redo() throws LogException
RecoveryManager
.
LogException
public void undo() throws LogException
RecoveryManager
.
LogException
public java.lang.String dump()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |