Tabnine Logo
StorageClientSettings.statsLogger
Code IndexAdd Tabnine to your IDE (free)

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

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

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

public static Function<Endpoint, StorageServerChannel> factory(StorageClientSettings settings) {
  return new Function<Endpoint, StorageServerChannel>() {
    private final Optional<MonitoringClientInterceptor> interceptor =
      settings.statsLogger().map(statsLogger ->
        MonitoringClientInterceptor.create(statsLogger, true));
    @Override
    public StorageServerChannel apply(Endpoint endpoint) {
      StorageServerChannel channel = new StorageServerChannel(
        endpoint,
        Optional.empty(),
        settings.usePlaintext(),
        settings.endpointResolver());
      return interceptor
        .map(interceptor -> channel.intercept(interceptor))
        .orElse(channel);
    }
  };
}
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.configStorageClientSettingsstatsLogger

Javadoc

Configure a stats logger to collect stats exposed by this client.

Popular methods of StorageClientSettings

  • newBuilder
  • backoffPolicy
    Configure a backoff policy for the client.There are a few default backoff policies defined in org.ap
  • enableServerSideRouting
    Configure whether to enable server side routing or not.By default, the client implementation will do
  • 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.
  • usePlaintext
    Use of a plaintext connection to the server. By default a secure connection mechanism such as TLS wi

Popular in Java

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • notifyDataSetChanged (ArrayAdapter)
  • getContentResolver (Context)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • BoxLayout (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top Sublime Text 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