|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimpledb.tx.recovery.RecoveryMgr
public class RecoveryMgr
The recovery manager. Each transaction has its own recovery manager.
Constructor Summary | |
---|---|
RecoveryMgr(int txnum)
Creates a recovery manager for the specified transaction. |
Method Summary | |
---|---|
void |
commit()
Writes a commit record to the log, and flushes it to disk. |
void |
recover()
Recovers uncompleted transactions from the log, then writes a quiescent checkpoint record to the log and flushes it. |
void |
rollback()
Writes a rollback record to the log, and flushes it to disk. |
int |
setInt(Buffer buff,
int offset,
int newval)
Writes a setint record to the log, and returns its lsn. |
int |
setString(Buffer buff,
int offset,
String newval)
Writes a setstring record to the log, and returns its lsn. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RecoveryMgr(int txnum)
txnum
- the ID of the specified transactionMethod Detail |
---|
public void commit()
public void rollback()
public void recover()
public int setInt(Buffer buff, int offset, int newval)
buff
- the buffer containing the pageoffset
- the offset of the value in the pagenewval
- the value to be writtenpublic int setString(Buffer buff, int offset, String newval)
buff
- the buffer containing the pageoffset
- the offset of the value in the pagenewval
- the value to be written
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |