congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
StorageClientSettings.enableServerSideRouting
Code IndexAdd Tabnine to your IDE (free)

How to use
enableServerSideRouting
method
in
org.apache.bookkeeper.clients.config.StorageClientSettings

Best Java code snippets using org.apache.bookkeeper.clients.config.StorageClientSettings.enableServerSideRouting (Showing top 3 results out of 315)

origin: org.apache.bookkeeper/stream-storage-java-client

/**
 * Build a {@link StorageAdminClient} client.
 *
 * @return a {@link StorageAdminClient} client.
 */
public StorageAdminClient buildAdmin() {
  checkNotNull(settings, "Storage client settings is null");
  if (settings.enableServerSideRouting()) {
    return new SimpleStorageAdminClientImpl(settings);
  } else {
    return new StorageAdminClientImpl(settings, ClientResources.create());
  }
}
origin: org.apache.bookkeeper/stream-storage-java-client

/**
 * Build a {@link StorageClient} client.
 *
 * @return a {@link StorageClient} client.
 */
public StorageClient build() {
  checkNotNull(settings, "Stream settings is null");
  checkArgument(validateNamespaceName(namespaceName), "Namespace name '" + namespaceName + "'is invalid");
  if (settings.enableServerSideRouting()) {
    return new SimpleStorageClientImpl(namespaceName, settings);
  } else {
    return new StorageClientImpl(
      namespaceName,
      settings,
      ClientResources.create());
  }
}
origin: org.apache.bookkeeper/stream-storage-java-client-base

/** Sets all property values using the given {@code StorageClientSettings} as a template. */
public StorageClientSettings.Builder mergeFrom(StorageClientSettings value) {
 StorageClientSettings_Builder _defaults = StorageClientSettings.newBuilder();
 if (!Objects.equals(value.numWorkerThreads(), _defaults.numWorkerThreads())) {
  numWorkerThreads(value.numWorkerThreads());
 }
 if (_defaults._unsetProperties.contains(StorageClientSettings_Builder.Property.SERVICE_URI)
   || !Objects.equals(value.serviceUri(), _defaults.serviceUri())) {
  serviceUri(value.serviceUri());
 }
 if (!Objects.equals(value.endpointResolver(), _defaults.endpointResolver())) {
  endpointResolver(value.endpointResolver());
 }
 if (!Objects.equals(value.usePlaintext(), _defaults.usePlaintext())) {
  usePlaintext(value.usePlaintext());
 }
 value.clientName().ifPresent(this::clientName);
 value.statsLogger().ifPresent(this::statsLogger);
 if (!Objects.equals(value.backoffPolicy(), _defaults.backoffPolicy())) {
  backoffPolicy(value.backoffPolicy());
 }
 if (!Objects.equals(value.enableServerSideRouting(), _defaults.enableServerSideRouting())) {
  enableServerSideRouting(value.enableServerSideRouting());
 }
 return (StorageClientSettings.Builder) this;
}
org.apache.bookkeeper.clients.configStorageClientSettingsenableServerSideRouting

Javadoc

Configure whether to enable server side routing or not.

By default, the client implementation will does client side routing, which will talk to storage containers directly, however sometimes if you can simply expose storage containers addresses due to network security constraints, you can enable server side routing. in server side routing mode, the clients simply make grpc calls to any storage container, those storage containers will route the requests accordingly to the right storage container. In this mode, the storage containers act as grpc proxies.

Popular methods of StorageClientSettings

  • newBuilder
  • backoffPolicy
    Configure a backoff policy for the client.There are a few default backoff policies defined in org.ap
  • serviceUri
    Returns the service uri that storage client should talk to.
  • clientName
    Configure the client name.
  • endpointResolver
    Return the endpoint resolver for resolving individual endpoints.The default resolver is an identity
  • numWorkerThreads
    Returns the number of worker threads in the core scheduler used by the client.
  • statsLogger
    Configure a stats logger to collect stats exposed by this client.
  • usePlaintext
    Use of a plaintext connection to the server. By default a secure connection mechanism such as TLS wi

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSystemService (Context)
  • getExternalFilesDir (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • JOptionPane (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • CodeWhisperer 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