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

  • 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-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

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • notifyDataSetChanged (ArrayAdapter)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
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