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

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

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

origin: com.netflix.eureka/eureka2-testkit

.withCodec(codec)
.withHttpPort(httpPort)
.withShutDownPort(0) // We do not run shutdown service in embedded server
.withWebAdminPort(adminPort)
.withReplicationRetryMillis(1000)
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$WriteServerConfigBuilderwithShutDownPort

Popular methods of WriteServerConfig$WriteServerConfigBuilder

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • getContentResolver (Context)
  • getSystemService (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • ImageIO (javax.imageio)
  • JCheckBox (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top Vim plugins
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