Search in sources :

Example 1 with FsLogStorage

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);
}
Also used : RaftPersistentFileStorage(io.zeebe.broker.clustering.raft.RaftPersistentFileStorage) FsLogStorage(io.zeebe.logstreams.impl.log.fs.FsLogStorage)

Aggregations

RaftPersistentFileStorage (io.zeebe.broker.clustering.raft.RaftPersistentFileStorage)1 FsLogStorage (io.zeebe.logstreams.impl.log.fs.FsLogStorage)1