Tabnine Logo
WriteServerConfig$WriteServerConfigBuilder.withDataCenterType
Code IndexAdd Tabnine to your IDE (free)

How to use
withDataCenterType
method
in
com.netflix.eureka2.server.config.WriteServerConfig$WriteServerConfigBuilder

Best Java code snippets using com.netflix.eureka2.server.config.WriteServerConfig$WriteServerConfigBuilder.withDataCenterType (Showing top 4 results out of 315)

origin: com.netflix.eureka/eureka2-testkit

.withVipAddress(WRITE_SERVER_NAME)
.withReadClusterVipAddress(EmbeddedReadCluster.READ_SERVER_NAME)
.withDataCenterType(DataCenterType.Basic)
.withRegistrationPort(writeServerAddress.getRegistrationPort())
.withDiscoveryPort(writeServerAddress.getInterestPort())
origin: com.netflix.eureka/eureka2-testkit

@Override
protected void before() throws Throwable {
  WriteServerConfig config = WriteServerConfig.writeBuilder()
      .withAppName(name)
      .withVipAddress(name)
      .withReadClusterVipAddress(readClusterName)
      .withDataCenterType(DataCenterType.Basic)
      .withHttpPort(0)
      .withRegistrationPort(0)
      .withDiscoveryPort(0)
      .withReplicationPort(0)
      .withCodec(codec)
      .withShutDownPort(0)
      .withWebAdminPort(0)
      .withReplicationRetryMillis(1000)
      .build();
  Observable<ChangeNotification<Server>> noPeers = Observable.never();
  server = new EmbeddedWriteServer(config, noPeers, noPeers, false, false);
  server.start();
}
origin: com.netflix.eureka2/eureka-testkit

@Override
public int scaleUpByOne() {
  WriteServerAddress writeServerAddress = new WriteServerAddress("localhost", nextAvailablePort, nextAvailablePort + 1, nextAvailablePort + 2);
  WriteServerConfig config = WriteServerConfig.writeBuilder()
      .withAppName(WRITE_SERVER_NAME)
      .withVipAddress(WRITE_SERVER_NAME)
      .withDataCenterType(DataCenterType.Basic)
      .withRegistrationPort(writeServerAddress.getRegistrationPort())
      .withDiscoveryPort(writeServerAddress.getDiscoveryPort())
      .withReplicationPort(writeServerAddress.getReplicationPort())
      .withCodec(Codec.Avro)
      .withShutDownPort(nextAvailablePort + 3)
      .withWebAdminPort(nextAvailablePort + 4)
      .withReplicationRetryMillis(1000)
      .build();
  EmbeddedWriteServer newServer = newServer(config);
  newServer.start();
  nextAvailablePort += 10;
  return scaleUpByOne(newServer, writeServerAddress);
}
origin: com.netflix.eureka2/eureka-testkit

@Override
protected void before() throws Throwable {
  WriteServerConfig config = WriteServerConfig.writeBuilder()
      .withAppName(name)
      .withVipAddress(name)
      .withDataCenterType(DataCenterType.Basic)
      .withRegistrationPort(0)
      .withDiscoveryPort(0)
      .withReplicationPort(0)
      .withCodec(Codec.Avro)
      .withShutDownPort(0)
      .withWebAdminPort(0)
      .withReplicationRetryMillis(1000)
      .build();
  server = new EmbeddedWriteServer(config, Observable.<ChangeNotification<InetSocketAddress>>never(), false, false);
  server.start();
}
com.netflix.eureka2.server.configWriteServerConfig$WriteServerConfigBuilderwithDataCenterType

Popular methods of WriteServerConfig$WriteServerConfigBuilder

  • withDiscoveryPort
  • withRegistrationPort
  • withReplicationPort
  • <init>
  • build
  • withAppName
  • withCodec
  • withEvictionStrategyType
  • withEvictionStrategyValue
  • withEvictionTimeout
  • withReplicationRetryMillis
  • withShutDownPort
  • withReplicationRetryMillis,
  • withShutDownPort,
  • withVipAddress,
  • withWebAdminPort,
  • withHttpPort,
  • withReadClusterVipAddress,
  • withServerList

Popular in Java

  • Finding current android device location
  • setContentView (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • JFileChooser (javax.swing)
  • JFrame (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Github Copilot alternatives
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