|
||||||||||
| 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.
| Field Summary | |
protected long |
lsn
|
protected long |
transactId
|
protected byte |
type
|
| 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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.exist.storage.journal.Loggable |
getLogSize, read, write |
| Field Detail |
protected long transactId
protected byte type
protected long lsn
| Constructor Detail |
public AbstractLoggable(byte type,
long transactionId)
type - transactionId - | Method Detail |
public void clear(long transactionId)
public byte getLogType()
LoggableLogEntryTypes. The returned id is used by
JournalReader to find the correct Loggable instance
that can handle the entry.
getLogType in interface Loggablepublic long getTransactionId()
Loggable
getTransactionId in interface Loggablepublic void setLsn(long lsn)
LoggableLsn of the entry.
setLsn in interface Loggablelsn - public long getLsn()
LoggableLsn of the entry.
getLsn in interface Loggable
public void redo()
throws LogException
LoggableRecoveryManager.
redo in interface LoggableLogException
public void undo()
throws LogException
LoggableRecoveryManager.
undo in interface LoggableLogExceptionpublic java.lang.String dump()
dump in interface Loggable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||