Part of twisted.persisted.journal.base View Source View In Hierarchy
Known subclasses: twisted.persisted.journal.base.MemoryJournal, twisted.persisted.journal.rowjournal.RowJournal
All commands to the system get routed through here.
Subclasses should implement the actual snapshotting capability.Method | __init__ | Undocumented |
Method | updateFromLog | Run all commands from log that haven't been run yet. |
Method | executeCommand | Log and execute a command. |
Method | getLastSnapshot | Return command index of the last snapshot taken. |
Method | sync | Save journal to disk, returns Deferred of finish status. |
Method | _reallyExecute | Callback called when logging command is done. |
Run all commands from log that haven't been run yet.
This method should be run on startup to ensure the snapshot is up-to-date.Save journal to disk, returns Deferred of finish status.
Subclasses may choose whatever signature is appropriate, or may not implement this at all.