| java.lang.Object com.quadcap.sql.file.Log3
Log3 | public class Log3 implements Log(Code) | | Interface to logging subsystem.
author: Stan Bailes |
addEntry | public void addEntry(LogEntry entry) throws IOException(Code) | | Add a transaction's log record to the end of the open log file
|
checkpoint | public void checkpoint() throws IOException(Code) | | Perform a checkpoint operation.
|
flushLog | public void flushLog() throws IOException(Code) | | Flush all log records to disk.
|
getDatafile | public Datafile getDatafile()(Code) | | Return the database that we're logging for
|
getRowMap | public long getRowMap(long rowId)(Code) | | Retrieve a row mapping.
|
inRecovery | public boolean inRecovery() throws IOException(Code) | | Are we currently performing restart log recovery?
|
isLogging | public boolean isLogging()(Code) | | Are you logging?
|
putRowMap | public void putRowMap(long logRow, long fileRow)(Code) | | Remember a row mapping {old,new} The old row (logRow) is now stored
in a new place (fileRow), so any stored log entries that refer to
the old row need to be translated to use the new row.
Parameters: logRow - the "old" row Parameters: fileRow - the "new" row |
removeRowMap | public void removeRowMap(long row)(Code) | | Discard a row mapping
|
resetBlocks | public void resetBlocks() throws IOException(Code) | | Reset the "before" list to be empty
|
restart | public void restart() throws Exception(Code) | | Restart from a previous state
|
restoreBlocks | public void restoreBlocks() throws IOException(Code) | | Restore all the "before" images
|
saveBlock | public void saveBlock(long b) throws IOException(Code) | | Save a "before" image
|
start | public void start()(Code) | | Start the logging subsystem
|
sync | public void sync() throws IOException(Code) | | Wait for all queue ops to be processed by the log sync thread
|
|
|