| java.lang.Object com.mckoi.store.JournalledSystem
JournalledSystem | class JournalledSystem (Code) | | Manages a journalling data store management system. All operations are
written out to a log that can be easily recovered from if a crash occurs.
author: Tobias Downer |
Constructor Summary | |
| JournalledSystem(File journal_path, boolean read_only, int page_size, StoreDataAccessorFactory sda_factory, DebugLogger debug, boolean enable_logging) |
JournalledSystem | JournalledSystem(File journal_path, boolean read_only, int page_size, StoreDataAccessorFactory sda_factory, DebugLogger debug, boolean enable_logging)(Code) | | |
rollForwardRecover | void rollForwardRecover() throws IOException(Code) | | Recovers any lost operations that are currently in the journal. This
retries all logged entries. This would typically be called before any
other IO operations.
|
setCheckPoint | void setCheckPoint(boolean flush_journals) throws IOException(Code) | | Sets a check point in the log. If 'flush_journals' is true then when the
method returns we are guarenteed that all the journals are flushed and the
data is absolutely current. If 'flush_journals' is false then we can't
assume the journals will be empty when the method returns.
|
stop | void stop() throws IOException(Code) | | Stops the journal system. This will persist any pending changes up to the
last check point and then finish.
|
|
|