public EurekaDashboardConfigBuilder withDashboardPort(int dashboardPort) { this.dashboardPort = dashboardPort; return self(); }
public BasicEurekaRegistryConfig build() { return new BasicEurekaRegistryConfig(evictionTimeoutMs, evictionStrategyType, evictionStrategyValue); } }
public EurekaDeploymentResource(int writeClusterSize, int readClusterSize) { this(writeClusterSize, readClusterSize, new BasicEurekaTransportConfig.Builder().build()); }
public static EmbeddedDashboardServer newDashboard(ServerResolver registrationServerResolver, ServerResolver discoveryServerResolver, boolean withExt, boolean withAdminUI) { EurekaDashboardConfig config = EurekaDashboardConfig.newBuilder() .withAppName(DASHBOARD_SERVER_NAME) .withVipAddress(DASHBOARD_SERVER_NAME) .withDataCenterType(DataCenterType.Basic) .withCodec(Codec.Avro) .withShutDownPort(DASHBOARD_SERVER_PORTS_FROM + 3) .withWebAdminPort(DASHBOARD_SERVER_PORTS_FROM + 4) .build(); return new EmbeddedDashboardServer(config, registrationServerResolver, discoveryServerResolver, withExt, withAdminUI); }
public CLIENT build() { if (transportConfig == null) { transportConfig = new BasicEurekaTransportConfig.Builder().build(); } if (registryConfig == null) { registryConfig = new BasicEurekaRegistryConfig.Builder().build(); } if (clientMetricFactory == null) { clientMetricFactory = EurekaClientMetricFactory.clientMetrics(); } if (registryMetricFactory == null) { registryMetricFactory = EurekaRegistryMetricFactory.registryMetrics(); } return buildClient(); }
public LightEurekaInterestClient(Server server, Scheduler scheduler) { this.server = server; this.scheduler = scheduler; this.config = new BasicEurekaTransportConfig.Builder().build(); this.pipelineConfigurator = EurekaTransports.interestPipeline(config.getCodec()); }
public TcpRegistrationClient(String clientId, EurekaTransportConfig config, ServerResolver resolver, MessageConnectionMetrics metrics) { super(clientId, config, resolver, EurekaTransports.registrationPipeline(config.getCodec()), metrics); } }
public static EurekaDashboardConfigBuilder newBuilder() { return new EurekaDashboardConfigBuilder(); }
@Override public DashboardServerReport serverReport() { String dashboardURI = "http://localhost:" + config.getDashboardPort() + "/dashboard.html"; return new DashboardServerReport( dashboardURI, formatAdminURI() ); }
public EurekaDashboardConfig build() { return new EurekaDashboardConfig( resolverType, serverList, codec, appName, vipAddress, dataCenterType, shutDownPort, webAdminPort, // dashboard server configs dashboardPort, webSocketPort ); } }
public BasicEurekaTransportConfig build() { return new BasicEurekaTransportConfig(heartbeatIntervalMs, connectionAutoTimeoutMs, codec); } }
public static EmbeddedDashboardServer newDashboard(ServerResolver registrationServerResolver, ServerResolver discoveryServerResolver, int discoveryPort, boolean withExt, boolean withAdminUI, boolean ephemeralPorts, CodecType codec) { int dashboardPort = ephemeralPorts ? 0 : DASHBOARD_SERVER_PORTS_FROM; int webAdminPort = ephemeralPorts ? 0 : DASHBOARD_SERVER_PORTS_FROM + 1; EurekaDashboardConfig config = EurekaDashboardConfig.newBuilder() .withAppName(DASHBOARD_SERVER_NAME) .withVipAddress(DASHBOARD_SERVER_NAME) .withDataCenterType(DataCenterType.Basic) .withCodec(codec) .withShutDownPort(-1) // No shutdown service in embedded mode .withWebAdminPort(webAdminPort) .withDashboardPort(dashboardPort) .build(); return new EmbeddedDashboardServer(config, discoveryPort, registrationServerResolver, discoveryServerResolver, withExt, withAdminUI); }
public TcpDiscoveryClient(String clientId, EurekaTransportConfig config, ServerResolver resolver, MessageConnectionMetrics metrics) { super(clientId, config, resolver, EurekaTransports.interestPipeline(config.getCodec()), metrics); } }
public EurekaDashboardConfigBuilder withDashboardPort(int dashboardPort) { this.dashboardPort = dashboardPort; return self(); }
public DashboardCommandLineParser(String... args) { super(new EurekaDashboardConfigBuilder(), true, args); }
public EurekaDashboardConfig build() { return new EurekaDashboardConfig( resolverType, serverList, appName, vipAddress, readClusterVipAddress, dataCenterType, dataCenterResolveIntervalSec, httpPort, shutDownPort, webAdminPort, heartbeatIntervalMs, connectionAutoTimeoutMs, codec, evictionTimeoutMs, evictionStrategyType, evictionStrategyValue, // dashboard server configs dashboardPort, webSocketPort ); } }
public EurekaDashboardConfigBuilder withWebSocketPort(int webSocketPort) { this.webSocketPort = webSocketPort; return self(); }
public static EurekaDashboardConfigBuilder newBuilder() { return new EurekaDashboardConfigBuilder(); }
public EurekaDashboardConfigBuilder withWebSocketPort(int webSocketPort) { this.webSocketPort = webSocketPort; return self(); }
public DashboardCommandLineParser(String... args) { super(new EurekaDashboardConfigBuilder(), true, args); }