Search in sources :

Example 1 with RaftService

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();
}
Also used : RaftService(io.zeebe.broker.clustering.raft.RaftService) Raft(io.zeebe.raft.Raft)

Aggregations

RaftService (io.zeebe.broker.clustering.raft.RaftService)1 Raft (io.zeebe.raft.Raft)1