| Modifier and Type | Method and Description |
|---|---|
| public void | flush(LogInstant
flush log up to here where)Flush all unwritten log record up to the log instance indicated to disk. |
| public void | |
| public LogInstant | Returns: LogInstant that is the LogInstant of the loggable operationthe transaction that is affecting the change xact, Loggable the loggable operation that describes the change operation)Log the loggable operation under the context of the transaction and then apply the operation to the RawStore. |
| public LogInstant | Returns: LogInstant that is the LogInstant of the compensation operationthe transaction that is affecting the undo xact, Compensation the compensation operation operation, LogInstant the logInstant of the change that is to be undone undoInstant, LimitObjectInput optional data in)Log the compensation operation under the context of the transaction and then apply the undo to the RawStore. |
| public void | reprepare(RawTransaction
is the transaction performing the re-prepare t, TransactionId is the transaction ID to be re-prepared undoId, LogInstant is where the log instant (inclusive) where the
re-prepare should stop. undoStopAt, LogInstant is the log instant (inclusive) where re-prepare
should begin, this is normally the log instant of
the last log record of the transaction that is to
be re-prepare. If null, then re-prepare starts
from the end of the log. undoStartAt)During recovery re-prepare a transaction. |
| public void | undo(RawTransaction
is the transaction performing the rollback t, TransactionId is the transaction ID to be rolled back undoId, LogInstant is where the log instant (inclusive) where
the rollback should stop. undoStopAt, LogInstant is the log instant (inclusive) where rollback
should begin, this is normally the log instant of
the last log record of the transaction that is
to be rolled back.
If null, then rollback starts from the end of the log. undoStartAt)Undo transaction. |
| flush | back to summary |
|---|---|
| public void flush(LogInstant where) throws StandardException Flush all unwritten log record up to the log instance indicated to disk.
| |
| flushAll | back to summary |
|---|---|
| public void flushAll() throws StandardException Flush all unwritten log to disk
| |
| logAndDo | back to summary |
|---|---|
| public LogInstant logAndDo(RawTransaction xact, Loggable operation) throws StandardException Log the loggable operation under the context of the transaction and then
apply the operation to the RawStore.
| |
| logAndUndo | back to summary |
|---|---|
| public LogInstant logAndUndo(RawTransaction xact, Compensation operation, LogInstant undoInstant, LimitObjectInput in) throws StandardException Log the compensation operation under the context of the transaction
and then apply the undo to the RawStore.
| |
| reprepare | back to summary |
|---|---|
| public void reprepare(RawTransaction t, TransactionId undoId, LogInstant undoStopAt, LogInstant undoStartAt) throws StandardException During recovery re-prepare a transaction. After redo() and undo(), this routine is called on all outstanding in-doubt (prepared) transactions. This routine re-acquires all logical write locks for operations in the xact, and then modifies the transaction table entry to make the transaction look as if it had just been prepared following startup after recovery.
| |
| undo | back to summary |
|---|---|
| public void undo(RawTransaction t, TransactionId undoId, LogInstant undoStopAt, LogInstant undoStartAt) throws StandardException Undo transaction.
| |