use of io.camunda.zeebe.broker.clustering.ClusterServices in project zeebe by camunda.
the class GatewayIntegrationTest method setup.
@Before
public void setup() {
final GatewayCfg configuration = new GatewayCfg();
final var brokerCfg = broker.getBrokerCfg();
final var internalApi = brokerCfg.getNetwork().getInternalApi();
configuration.getCluster().setHost("0.0.0.0").setPort(SocketUtil.getNextAddress().getPort()).setContactPoint(internalApi.toString()).setRequestTimeout(Duration.ofSeconds(10));
configuration.init();
final ControlledActorClock clock = new ControlledActorClock();
final ClusterServices clusterServices = broker.getClusterServices();
client = new BrokerClientImpl(configuration, clusterServices.getMessagingService(), clusterServices.getMembershipService(), clusterServices.getEventService(), clock);
}
use of io.camunda.zeebe.broker.clustering.ClusterServices in project zeebe by camunda-cloud.
the class GatewayIntegrationTest method setup.
@Before
public void setup() {
final GatewayCfg configuration = new GatewayCfg();
final var brokerCfg = broker.getBrokerCfg();
final var internalApi = brokerCfg.getNetwork().getInternalApi();
configuration.getCluster().setHost("0.0.0.0").setPort(SocketUtil.getNextAddress().getPort()).setContactPoint(internalApi.toString()).setRequestTimeout(Duration.ofSeconds(10));
configuration.init();
final ControlledActorClock clock = new ControlledActorClock();
final ClusterServices clusterServices = broker.getClusterServices();
client = new BrokerClientImpl(configuration, clusterServices.getMessagingService(), clusterServices.getMembershipService(), clusterServices.getEventService(), clock);
}
use of io.camunda.zeebe.broker.clustering.ClusterServices in project zeebe by zeebe-io.
the class GatewayIntegrationTest method setup.
@Before
public void setup() {
final GatewayCfg configuration = new GatewayCfg();
final var brokerCfg = broker.getBrokerCfg();
final var internalApi = brokerCfg.getNetwork().getInternalApi();
configuration.getCluster().setHost("0.0.0.0").setPort(SocketUtil.getNextAddress().getPort()).setContactPoint(internalApi.toString()).setRequestTimeout(Duration.ofSeconds(10));
configuration.init();
final ControlledActorClock clock = new ControlledActorClock();
final ClusterServices clusterServices = broker.getClusterServices();
client = new BrokerClientImpl(configuration, clusterServices.getMessagingService(), clusterServices.getMembershipService(), clusterServices.getEventService(), clock);
}
Aggregations