congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
com.netflix.eureka2.config
Code IndexAdd Tabnine to your IDE (free)

How to use com.netflix.eureka2.config

Best Java code snippets using com.netflix.eureka2.config (Showing top 20 results out of 315)

origin: com.netflix.eureka2/eureka-dashboard

public EurekaDashboardConfigBuilder withDashboardPort(int dashboardPort) {
  this.dashboardPort = dashboardPort;
  return self();
}
origin: com.netflix.eureka/eureka2-core

  public BasicEurekaRegistryConfig build() {
    return new BasicEurekaRegistryConfig(evictionTimeoutMs, evictionStrategyType, evictionStrategyValue);
  }
}
origin: com.netflix.eureka/eureka2-testkit

public EurekaDeploymentResource(int writeClusterSize, int readClusterSize) {
  this(writeClusterSize, readClusterSize, new BasicEurekaTransportConfig.Builder().build());
}
origin: com.netflix.eureka2/eureka-testkit

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);
}
origin: com.netflix.eureka/eureka2-client

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();
}
origin: com.netflix.eureka/eureka2-write-server

public LightEurekaInterestClient(Server server, Scheduler scheduler) {
  this.server = server;
  this.scheduler = scheduler;
  this.config = new BasicEurekaTransportConfig.Builder().build();
  this.pipelineConfigurator = EurekaTransports.interestPipeline(config.getCodec());
}
origin: com.netflix.eureka/eureka2-client

  public TcpRegistrationClient(String clientId, EurekaTransportConfig config, ServerResolver resolver, MessageConnectionMetrics metrics) {
    super(clientId, config, resolver, EurekaTransports.registrationPipeline(config.getCodec()), metrics);
  }
}
origin: com.netflix.eureka2/eureka-dashboard

public static EurekaDashboardConfigBuilder newBuilder() {
  return new EurekaDashboardConfigBuilder();
}
origin: com.netflix.eureka2/eureka-testkit

@Override
public DashboardServerReport serverReport() {
  String dashboardURI = "http://localhost:" + config.getDashboardPort() + "/dashboard.html";
  return new DashboardServerReport(
      dashboardURI,
      formatAdminURI()
  );
}
origin: com.netflix.eureka2/eureka-dashboard

  public EurekaDashboardConfig build() {
    return new EurekaDashboardConfig(
        resolverType,
        serverList,
        codec,
        appName,
        vipAddress,
        dataCenterType,
        shutDownPort,
        webAdminPort,
        // dashboard server configs
        dashboardPort,
        webSocketPort
    );
  }
}
origin: com.netflix.eureka/eureka2-core

  public BasicEurekaTransportConfig build() {
    return new BasicEurekaTransportConfig(heartbeatIntervalMs, connectionAutoTimeoutMs, codec);
  }
}
origin: com.netflix.eureka/eureka2-testkit

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);
}
origin: com.netflix.eureka/eureka2-client

  public TcpDiscoveryClient(String clientId, EurekaTransportConfig config, ServerResolver resolver, MessageConnectionMetrics metrics) {
    super(clientId, config, resolver, EurekaTransports.interestPipeline(config.getCodec()), metrics);
  }
}
origin: com.netflix.eureka/eureka2-dashboard

public EurekaDashboardConfigBuilder withDashboardPort(int dashboardPort) {
  this.dashboardPort = dashboardPort;
  return self();
}
origin: com.netflix.eureka/eureka2-dashboard

public DashboardCommandLineParser(String... args) {
  super(new EurekaDashboardConfigBuilder(), true, args);
}
origin: com.netflix.eureka/eureka2-dashboard

  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
    );
  }
}
origin: com.netflix.eureka2/eureka-dashboard

public EurekaDashboardConfigBuilder withWebSocketPort(int webSocketPort) {
  this.webSocketPort = webSocketPort;
  return self();
}
origin: com.netflix.eureka/eureka2-dashboard

public static EurekaDashboardConfigBuilder newBuilder() {
  return new EurekaDashboardConfigBuilder();
}
origin: com.netflix.eureka/eureka2-dashboard

public EurekaDashboardConfigBuilder withWebSocketPort(int webSocketPort) {
  this.webSocketPort = webSocketPort;
  return self();
}
origin: com.netflix.eureka2/eureka-dashboard

public DashboardCommandLineParser(String... args) {
  super(new EurekaDashboardConfigBuilder(), true, args);
}
com.netflix.eureka2.config

Most used classes

  • EurekaDashboardConfig$EurekaDashboardConfigBuilder
  • EurekaDashboardConfig
  • BasicEurekaTransportConfig$Builder
  • EurekaTransportConfig
    Configuration for the transport layer that applies to all channels created
  • BasicEurekaRegistryConfig$Builder
  • BasicEurekaRegistryConfig,
  • BasicEurekaTransportConfig,
  • EurekaRegistryConfig
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now