|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.storage.journal.AbstractLoggable
Abstract implementation of the Loggable interface.
Constructor Summary | |
AbstractLoggable(byte type,
long transactionId)
Default constructor: initialize entry type and transaction id. |
Method Summary | |
void |
clear(long transactionId)
|
java.lang.String |
dump()
Default implementation returns the current LSN plus the class name of the Loggable instance. |
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 |
redo()
Redo the underlying operation. |
void |
setLsn(long lsn)
Set the Lsn of the entry. |
void |
undo()
Undo, i.e. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.exist.storage.journal.Loggable |
getLogSize, read, write |
Constructor Detail |
public AbstractLoggable(byte type, long transactionId)
type
- transactionId
- Method Detail |
public void clear(long transactionId)
public byte getLogType()
Loggable
LogEntryTypes
. The returned id is used by
JournalReader
to find the correct Loggable instance
that can handle the entry.
getLogType
in interface Loggable
public long getTransactionId()
Loggable
getTransactionId
in interface Loggable
public void setLsn(long lsn)
Loggable
Lsn
of the entry.
setLsn
in interface Loggable
lsn
- public long getLsn()
Loggable
Lsn
of the entry.
getLsn
in interface Loggable
public void redo() throws LogException
Loggable
RecoveryManager
.
redo
in interface Loggable
LogException
public void undo() throws LogException
Loggable
RecoveryManager
.
undo
in interface Loggable
LogException
public java.lang.String dump()
dump
in interface Loggable
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |