|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimpledb.tx.recovery.CheckpointRecord
class CheckpointRecord
The CHECKPOINT log record.
Field Summary |
---|
Fields inherited from interface simpledb.tx.recovery.LogRecord |
---|
CHECKPOINT, COMMIT, logMgr, ROLLBACK, SETINT, SETSTRING, START |
Constructor Summary | |
---|---|
CheckpointRecord()
Creates a quiescent checkpoint record. |
|
CheckpointRecord(BasicLogRecord rec)
Creates a log record by reading no other values from the basic log record. |
Method Summary | |
---|---|
int |
op()
Returns the log record's type. |
java.lang.String |
toString()
|
int |
txNumber()
Checkpoint records have no associated transaction, and so the method returns a "dummy", negative txid. |
void |
undo(int txnum)
Does nothing, because a checkpoint record contains no undo information. |
int |
writeToLog()
Writes a checkpoint record to the log. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CheckpointRecord()
public CheckpointRecord(BasicLogRecord rec)
rec
- the basic log recordMethod Detail |
---|
public int writeToLog()
writeToLog
in interface LogRecord
public int op()
LogRecord
op
in interface LogRecord
public int txNumber()
txNumber
in interface LogRecord
public void undo(int txnum)
undo
in interface LogRecord
txnum
- the id of the transaction that is performing the undo.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |