Search in sources :

Example 1 with Gossip

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);
}
Also used : Gossip(io.zeebe.gossip.Gossip)

Example 2 with 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);
}
Also used : DirectBuffer(org.agrona.DirectBuffer) Gossip(io.zeebe.gossip.Gossip)

Aggregations

Gossip (io.zeebe.gossip.Gossip)2 DirectBuffer (org.agrona.DirectBuffer)1