Codota Logo
StorageClientSettings.enableServerSideRouting
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
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
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now