use of io.zeebe.logstreams.impl.log.fs.FsLogStorage in project zeebe by zeebe-io.
the class ClusterManager method createRaft.
public void createRaft(final SocketAddress socketAddress, final LogStream logStream, final List<SocketAddress> members) {
final FsLogStorage logStorage = (FsLogStorage) logStream.getLogStorage();
final String path = logStorage.getConfig().getPath();
final String directory = transportComponentCfg.management.directory;
final RaftPersistentFileStorage storage = new RaftPersistentFileStorage(String.format("%s%s.meta", directory, logStream.getLogName()));
storage.setLogStream(logStream).setLogDirectory(path).save();
createRaft(socketAddress, logStream, members, storage);
}
Aggregations