public interface JRaftServiceFactory
| Modifier and Type | Method and Description |
|---|---|
LogEntryCodecFactory |
createLogEntryCodecFactory()
Creates a log entry codec factory.
|
LogStorage |
createLogStorage(String uri,
RaftOptions raftOptions)
Creates a raft log storage.
|
RaftMetaStorage |
createRaftMetaStorage(String uri,
RaftOptions raftOptions)
Creates a raft meta storage.
|
SnapshotStorage |
createSnapshotStorage(NodeOptions nodeOptions)
Creates a raft snapshot storage
|
LogStorage createLogStorage(String uri, RaftOptions raftOptions)
uri - The log storage uri from NodeOptions.getSnapshotUri()raftOptions - the raft options.SnapshotStorage createSnapshotStorage(NodeOptions nodeOptions)
nodeOptions - the node options.RaftMetaStorage createRaftMetaStorage(String uri, RaftOptions raftOptions)
uri - The meta storage uri from NodeOptions.getRaftMetaUri()raftOptions - the raft options.LogEntryCodecFactory createLogEntryCodecFactory()
Copyright © 2024. All rights reserved.