public BrokerCfg getConfig() { return brokerContext.getBrokerConfiguration(); } }
public SystemContext(final BrokerCfg brokerCfg, final String basePath, final ActorClock clock) { this.brokerCfg = brokerCfg; initSystemContext(clock, basePath); }
public Broker(final BrokerCfg cfg, final String basePath, final ActorClock clock) { this(new SystemContext(cfg, basePath, clock)); }
@Override public void init(final SystemContext context) { final ServiceContainer serviceContainer = context.getServiceContainer(); initClusterBaseLayer(context, serviceContainer); }
@Test public void shouldUsePortOffset() { final int offset = 50; assertPorts( "port-offset", CLIENT_PORT + offset, MANAGEMENT_PORT + offset, REPLICATION_PORT + offset, SUBSCRIPTION_PORT + offset); }
@Test public void shouldUseSpecifiedHosts() { assertHost( "specific-hosts", DEFAULT_HOST, "gatewayHost", "clientHost", "managementHost", "replicationHost", "subscriptionHost"); }
@Test public void shouldUseDefaultContactPoints() { assertContactPoints("default", DEFAULT_CONTACT_POINTS); }
public Broker(final InputStream configStream, final String basePath, final ActorClock clock) { this(new SystemContext(configStream, basePath, clock)); }
public BrokerCfg getConfig() { return brokerContext.getBrokerConfiguration(); } }
public SystemContext(final BrokerCfg brokerCfg, final String basePath, final ActorClock clock) { this.brokerCfg = brokerCfg; initSystemContext(clock, basePath); }
@Test public void shouldUsePortOffsetWithSpecifiedPorts() { final int offset = 30; assertPorts("specific-ports-offset", 1 + offset, 2 + offset, 3 + offset, 4 + offset); }
@Test public void shouldUseSpecifiedHosts() { assertHost( "specific-hosts", DEFAULT_HOST, "gatewayHost", "clientHost", "managementHost", "replicationHost", "subscriptionHost"); }
public Broker(final String configFileLocation, final String basePath, final ActorClock clock) { this(new SystemContext(configFileLocation, basePath, clock)); }
public SystemContext( final InputStream configStream, final String basePath, final ActorClock clock) { brokerCfg = TomlConfigurationReader.read(configStream, BrokerCfg.class); initSystemContext(clock, basePath); }
@Test public void shouldUsePortOffset() { final int offset = 50; assertPorts( "port-offset", CLIENT_PORT + offset, MANAGEMENT_PORT + offset, REPLICATION_PORT + offset, SUBSCRIPTION_PORT + offset); }
public Broker(final String configFileLocation, final String basePath, final ActorClock clock) { this(new SystemContext(configFileLocation, basePath, clock)); }
public SystemContext( final InputStream configStream, final String basePath, final ActorClock clock) { brokerCfg = TomlConfigurationReader.read(configStream, BrokerCfg.class); initSystemContext(clock, basePath); }
@Test public void shouldUsePortOffsetWithSpecifiedPorts() { final int offset = 30; assertPorts("specific-ports-offset", 1 + offset, 2 + offset, 3 + offset, 4 + offset); }
public Broker(final InputStream configStream, final String basePath, final ActorClock clock) { this(new SystemContext(configStream, basePath, clock)); }
public Broker(final BrokerCfg cfg, final String basePath, final ActorClock clock) { this(new SystemContext(cfg, basePath, clock)); }