Search in sources :

Example 1 with AtomixClientTransportAdapter

use of io.camunda.zeebe.transport.impl.AtomixClientTransportAdapter in project zeebe by camunda.

the class QueryApiIT method setup.

@Before
public void setup() {
    serverAddress = NetUtil.toSocketAddressString(broker.getBrokerCfg().getNetwork().getCommandApi().getAddress());
    final var messagingService = new NettyMessagingService(broker.getBrokerCfg().getCluster().getClusterName(), Address.from(SocketUtil.getNextAddress().getPort()), new MessagingConfig());
    clientTransport = new AtomixClientTransportAdapter(messagingService);
    actor.submitActor((AtomixClientTransportAdapter) clientTransport).join();
    messagingService.start().join();
}
Also used : MessagingConfig(io.atomix.cluster.messaging.MessagingConfig) NettyMessagingService(io.atomix.cluster.messaging.impl.NettyMessagingService) AtomixClientTransportAdapter(io.camunda.zeebe.transport.impl.AtomixClientTransportAdapter) Before(org.junit.Before)

Example 2 with AtomixClientTransportAdapter

use of io.camunda.zeebe.transport.impl.AtomixClientTransportAdapter in project zeebe by camunda-cloud.

the class QueryApiIT method setup.

@Before
public void setup() {
    serverAddress = NetUtil.toSocketAddressString(broker.getBrokerCfg().getNetwork().getCommandApi().getAddress());
    final var messagingService = new NettyMessagingService(broker.getBrokerCfg().getCluster().getClusterName(), Address.from(SocketUtil.getNextAddress().getPort()), new MessagingConfig());
    clientTransport = new AtomixClientTransportAdapter(messagingService);
    actor.submitActor((AtomixClientTransportAdapter) clientTransport).join();
    messagingService.start().join();
}
Also used : MessagingConfig(io.atomix.cluster.messaging.MessagingConfig) NettyMessagingService(io.atomix.cluster.messaging.impl.NettyMessagingService) AtomixClientTransportAdapter(io.camunda.zeebe.transport.impl.AtomixClientTransportAdapter) Before(org.junit.Before)

Example 3 with AtomixClientTransportAdapter

use of io.camunda.zeebe.transport.impl.AtomixClientTransportAdapter in project zeebe by zeebe-io.

the class QueryApiIT method setup.

@Before
public void setup() {
    serverAddress = NetUtil.toSocketAddressString(broker.getBrokerCfg().getNetwork().getCommandApi().getAddress());
    final var messagingService = new NettyMessagingService(broker.getBrokerCfg().getCluster().getClusterName(), Address.from(SocketUtil.getNextAddress().getPort()), new MessagingConfig());
    clientTransport = new AtomixClientTransportAdapter(messagingService);
    actor.submitActor((AtomixClientTransportAdapter) clientTransport).join();
    messagingService.start().join();
}
Also used : MessagingConfig(io.atomix.cluster.messaging.MessagingConfig) NettyMessagingService(io.atomix.cluster.messaging.impl.NettyMessagingService) AtomixClientTransportAdapter(io.camunda.zeebe.transport.impl.AtomixClientTransportAdapter) Before(org.junit.Before)

Aggregations

MessagingConfig (io.atomix.cluster.messaging.MessagingConfig)3 NettyMessagingService (io.atomix.cluster.messaging.impl.NettyMessagingService)3 AtomixClientTransportAdapter (io.camunda.zeebe.transport.impl.AtomixClientTransportAdapter)3 Before (org.junit.Before)3