Search in sources :

Example 1 with LogManagerImpl

use of org.apache.ignite.raft.jraft.storage.impl.LogManagerImpl in project ignite-3 by apache.

the class NodeImpl method initLogStorage.

private boolean initLogStorage() {
    Requires.requireNonNull(this.fsmCaller, "Null fsm caller");
    this.logStorage = this.serviceFactory.createLogStorage(this.options.getLogUri(), this.raftOptions);
    this.logManager = new LogManagerImpl();
    final LogManagerOptions opts = new LogManagerOptions();
    opts.setGroupId(groupId);
    opts.setLogEntryCodecFactory(this.serviceFactory.createLogEntryCodecFactory());
    opts.setLogStorage(this.logStorage);
    opts.setConfigurationManager(this.configManager);
    opts.setNode(this);
    opts.setFsmCaller(this.fsmCaller);
    opts.setNodeMetrics(this.metrics);
    opts.setRaftOptions(this.raftOptions);
    opts.setLogManagerDisruptor(options.getLogManagerDisruptor());
    return this.logManager.init(opts);
}
Also used : LogManagerImpl(org.apache.ignite.raft.jraft.storage.impl.LogManagerImpl) LogManagerOptions(org.apache.ignite.raft.jraft.option.LogManagerOptions)

Aggregations

LogManagerOptions (org.apache.ignite.raft.jraft.option.LogManagerOptions)1 LogManagerImpl (org.apache.ignite.raft.jraft.storage.impl.LogManagerImpl)1