java.lang.Object
org.jgroups.protocols.raft.FileBasedLog
org.jgroups.protocols.raft.LevelDBLog
- All Implemented Interfaces:
Closeable,AutoCloseable,Log
Deprecated, for removal: This API element is subject to removal in a future version.
Legacy implementation of
Log which was using LevelDB JNI preserved for compatibility. Implementation simply
delegated to FileBasedLog.- Author:
- Ugo Landini
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.jgroups.logging.LogDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Methods inherited from class org.jgroups.protocols.raft.FileBasedLog
append, close, commitIndex, commitIndex, currentTerm, currentTerm, delete, deleteAllEntriesStartingFrom, firstAppended, forEach, forEach, get, getSnapshot, lastAppended, reinitializeTo, setSnapshot, sizeInBytes, toString, truncate, useFsync, useFsync, votedFor, votedFor
-
Field Details
-
LOG
protected final org.jgroups.logging.Log LOGDeprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
LevelDBLog
public LevelDBLog()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
init
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:LogCalled after the instance has been created- Specified by:
initin interfaceLog- Overrides:
initin classFileBasedLog- Parameters:
log_name- The name of the log. Implementations can create a DB or file named after this, e.g./tmp/<log_name></log_name>.logargs- A hashmap of configuration information (impl-dependent) to configure itself. May be null- Throws:
Exception
-
FileBasedLog.