use of io.zeebe.broker.clustering.raft.RaftService 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 RaftPersistentStorage persistentStorage) {
final ServiceName<Raft> raftServiceName = raftServiceName(logStream.getLogName());
final RaftService raftService = new RaftService(transportComponentCfg.raft, socketAddress, logStream, members, persistentStorage, clusterMemberListManager, clusterMemberListManager, raftServiceName);
serviceContainer.createService(raftServiceName, raftService).group(RAFT_SERVICE_GROUP).dependency(TransportServiceNames.clientTransport(TransportServiceNames.REPLICATION_API_CLIENT_NAME), raftService.getClientTransportInjector()).install();
}
Aggregations