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

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

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

origin: com.netflix.eureka/eureka2-testkit

.withReplicationPort(writeServerAddress.getReplicationPort())
.withServerList(new String[]{writeServerAddress.toWriteAddressString()})
.withCodec(codec)
.withHttpPort(httpPort)
.withShutDownPort(0) // We do not run shutdown service in embedded server
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$WriteServerConfigBuilderwithCodec

Popular methods of WriteServerConfig$WriteServerConfigBuilder

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

Popular in Java

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • addToBackStack (FragmentTransaction)
  • notifyDataSetChanged (ArrayAdapter)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • From CI to AI: The AI layer in your organization
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