|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Loggable
Interface to be implemented by all objects that can be written or read from the journalling log.
Method Summary | |
---|---|
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(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(ByteBuffer out)
Write this entry to the specified ByteBuffer. |
Method Detail |
---|
byte getLogType()
LogEntryTypes
. The returned id is used by
JournalReader
to find the correct Loggable instance
that can handle the entry.
long getTransactionId()
long getLsn()
Lsn
of the entry.
void setLsn(long lsn)
Lsn
of the entry.
lsn
- void write(ByteBuffer out)
out
- void read(ByteBuffer in)
in
- int getLogSize()
void redo() throws LogException
RecoveryManager
.
LogException
void undo() throws LogException
RecoveryManager
.
LogException
String dump()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |