use of io.zeebe.gossip.Gossip in project zeebe by zeebe-io.
the class GossipService method start.
@Override
public void start(ServiceStartContext startContext) {
actorScheduler = startContext.getScheduler();
final SocketAddress host = new SocketAddress(transportComponentCfg.managementApi.getHost(transportComponentCfg.host), transportComponentCfg.managementApi.port);
this.gossip = new Gossip(host, bufferingServerTransportInjector.getValue(), clientTransportInjector.getValue(), transportComponentCfg.gossip);
actorScheduler.submitActor(gossip);
}
use of io.zeebe.gossip.Gossip in project zeebe by zeebe-io.
the class ClusterMemberListManager method publishNodeAPIAddresses.
public void publishNodeAPIAddresses() {
final Gossip gossip = context.getGossip();
final String defaultHost = transportComponentCfg.host;
final DirectBuffer payload = writeAPIAddressesIntoBuffer(transportComponentCfg.managementApi.toSocketAddress(defaultHost), transportComponentCfg.replicationApi.toSocketAddress(defaultHost), transportComponentCfg.clientApi.toSocketAddress(defaultHost), apiAddressBuffer);
gossip.publishEvent(API_EVENT_TYPE, payload);
}
Aggregations