public static BridgeServerConfigBuilder newBuilder() { return new BridgeServerConfigBuilder(); }
public static EmbeddedBridgeServer newBridge(final Observable<ChangeNotification<Server>> replicationPeers, boolean withExt, boolean withDashboard, CodecType codec) { BridgeServerConfig config = BridgeServerConfig.newBuilder() .withAppName(BRIDGE_SERVER_NAME) .withVipAddress(BRIDGE_SERVER_NAME) .withDataCenterType(DataCenterType.Basic) .withRegistrationPort(BRIDGE_SERVER_PORTS_FROM) .withDiscoveryPort(BRIDGE_SERVER_PORTS_FROM + 1) // explicitly set it to a different port to verify .withReplicationPort(BRIDGE_SERVER_PORTS_FROM + 2) // explicitly set it to a different port to verify .withCodec(codec) .withRefreshRateSec(30) .withShutDownPort(BRIDGE_SERVER_PORTS_FROM + 3) .withWebAdminPort(BRIDGE_SERVER_PORTS_FROM + 4) .build(); return new EmbeddedBridgeServer(config, replicationPeers, withExt, withDashboard); }
public BridgeServerConfigBuilder withRefreshRateSec(int refreshRateSec) { this.refreshRateSec = refreshRateSec; return self(); }
public BridgeServerConfigBuilder withRefreshRateSec(int refreshRateSec) { this.refreshRateSec = refreshRateSec; return self(); }
public static EmbeddedBridgeServer newBridge(final Observable<ChangeNotification<InetSocketAddress>> replicationPeers, boolean withExt, boolean withDashboard) { BridgeServerConfig config = BridgeServerConfig.newBuilder() .withAppName(BRIDGE_SERVER_NAME) .withVipAddress(BRIDGE_SERVER_NAME) .withDataCenterType(DataCenterType.Basic) .withRegistrationPort(BRIDGE_SERVER_PORTS_FROM) .withDiscoveryPort(BRIDGE_SERVER_PORTS_FROM + 1) // explicitly set it to a different port to verify .withReplicationPort(BRIDGE_SERVER_PORTS_FROM + 2) // explicitly set it to a different port to verify .withCodec(Codec.Avro) .withRefreshRateSec(30) .withShutDownPort(BRIDGE_SERVER_PORTS_FROM + 3) .withWebAdminPort(BRIDGE_SERVER_PORTS_FROM + 4) .build(); return new EmbeddedBridgeServer(config, replicationPeers, withExt, withDashboard); }
public static BridgeServerConfigBuilder newBuilder() { return new BridgeServerConfigBuilder(); }