| java.lang.Object org.h2.log.LogSystem
LogSystem | public class LogSystem (Code) | | The transaction log system is responsible for the write ahead log mechanism
used in this database. A number of
LogFile objects are used (one for
each file).
|
Method Summary | |
public void | add(Session session, DiskFile file, Record record) | void | addRedoLog(Storage storage, int recordId, int blockCount, DataPage rec) | public void | addTruncate(Session session, DiskFile file, int storageId, int recordId, int blockCount) Add a truncate entry. | void | addUndoLogRecord(LogFile log, int logRecordId, int sessionId) | public void | checkpoint() | public void | close() | public void | commit(Session session) | public boolean | containsInDoubtTransactions() | public void | flush() | String | getAccessMode() | public ObjectArray | getActiveLogFiles() | Database | getDatabase() | boolean | getFlushOnEachCommit() | public ObjectArray | getInDoubtTransactions() | public long | getMaxLogSize() | SessionState | getOrAddSessionState(int sessionId) | DataPage | getRowBuffer() | Storage | getStorageForRecovery(int id) | public void | invalidateIndexSummary() | boolean | isSessionCommitted(int sessionId, int logId, int pos) | public void | open() | public void | prepareCommit(Session session, String transaction) | public boolean | recover() | void | removeSession(int sessionId) | public void | setDisabled(boolean disabled) | public void | setFlushOnEachCommit(boolean b) | void | setLastCommitForSession(int sessionId, int logId, int pos) | public void | setMaxLogSize(long maxSize) | void | setPreparedCommitForSession(LogFile log, int sessionId, int pos, String transaction, int blocks) | public void | sync() | public synchronized void | updateKeepFiles(int incrementDecrement) |
LOG_WRITTEN | final public static int LOG_WRITTEN(Code) | | |
addTruncate | public void addTruncate(Session session, DiskFile file, int storageId, int recordId, int blockCount) throws SQLException(Code) | | Add a truncate entry.
Parameters: session - the session Parameters: file - the disk file Parameters: storageId - the storage id Parameters: recordId - the id of the first record Parameters: blockCount - the number of blocks |
addUndoLogRecord | void addUndoLogRecord(LogFile log, int logRecordId, int sessionId)(Code) | | |
containsInDoubtTransactions | public boolean containsInDoubtTransactions()(Code) | | |
getFlushOnEachCommit | boolean getFlushOnEachCommit()(Code) | | |
getMaxLogSize | public long getMaxLogSize()(Code) | | |
isSessionCommitted | boolean isSessionCommitted(int sessionId, int logId, int pos)(Code) | | |
removeSession | void removeSession(int sessionId)(Code) | | |
setDisabled | public void setDisabled(boolean disabled)(Code) | | |
setFlushOnEachCommit | public void setFlushOnEachCommit(boolean b)(Code) | | |
setLastCommitForSession | void setLastCommitForSession(int sessionId, int logId, int pos)(Code) | | |
setMaxLogSize | public void setMaxLogSize(long maxSize)(Code) | | |
setPreparedCommitForSession | void setPreparedCommitForSession(LogFile log, int sessionId, int pos, String transaction, int blocks)(Code) | | |
updateKeepFiles | public synchronized void updateKeepFiles(int incrementDecrement)(Code) | | |
|
|