@Override protected void process(CommandLine cli) { super.process(cli); builder.withDashboardPort(Integer.parseInt(cli.getOptionValue("b", "" + DEFAULT_DASHBOARD_PORT))); } }
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 DashboardCommandLineParser(String... args) { super(new EurekaDashboardConfigBuilder(), true, args); }
public static EurekaDashboardConfigBuilder newBuilder() { return new EurekaDashboardConfigBuilder(); }
public EurekaDashboardConfigBuilder withWebSocketPort(int webSocketPort) { this.webSocketPort = webSocketPort; return self(); }
public EurekaDashboardConfigBuilder withWebSocketPort(int webSocketPort) { this.webSocketPort = webSocketPort; return self(); }
public DashboardCommandLineParser(String... args) { super(new EurekaDashboardConfigBuilder(), true, args); }
public static EurekaDashboardConfigBuilder newBuilder() { return new EurekaDashboardConfigBuilder(); }
public EurekaDashboardConfigBuilder withDashboardPort(int dashboardPort) { this.dashboardPort = dashboardPort; return self(); }
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 EurekaDashboardConfigBuilder withDashboardPort(int dashboardPort) { this.dashboardPort = dashboardPort; return self(); }
@Override protected void process(CommandLine cli) { super.process(cli); builder.withDashboardPort(Integer.parseInt(cli.getOptionValue("b", "" + DEFAULT_DASHBOARD_PORT))); } }