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

How to use
getString
method
in
org.apache.kafka.clients.admin.AdminClientConfig

Best Java code snippets using org.apache.kafka.clients.admin.AdminClientConfig.getString (Showing top 2 results out of 315)

origin: apache/kafka

/**
 * Generate the client id based on the configuration.
 *
 * @param config    The configuration
 *
 * @return          The client id
 */
static String generateClientId(AdminClientConfig config) {
  String clientId = config.getString(AdminClientConfig.CLIENT_ID_CONFIG);
  if (!clientId.isEmpty())
    return clientId;
  return "adminclient-" + ADMIN_CLIENT_ID_SEQUENCE.getAndIncrement();
}
origin: apache/kafka

List<InetSocketAddress> addresses = ClientUtils.parseAndValidateAddresses(
    config.getList(AdminClientConfig.BOOTSTRAP_SERVERS_CONFIG),
    config.getString(AdminClientConfig.CLIENT_DNS_LOOKUP_CONFIG));
metadataManager.update(Cluster.bootstrap(addresses), time.milliseconds());
List<MetricsReporter> reporters = config.getConfiguredInstances(AdminClientConfig.METRIC_REPORTER_CLASSES_CONFIG,
MetricConfig metricConfig = new MetricConfig().samples(config.getInt(AdminClientConfig.METRICS_NUM_SAMPLES_CONFIG))
  .timeWindow(config.getLong(AdminClientConfig.METRICS_SAMPLE_WINDOW_MS_CONFIG), TimeUnit.MILLISECONDS)
  .recordLevel(Sensor.RecordingLevel.forName(config.getString(AdminClientConfig.METRICS_RECORDING_LEVEL_CONFIG)))
  .tags(metricTags);
reporters.add(new JmxReporter(JMX_PREFIX));
  config.getInt(AdminClientConfig.RECEIVE_BUFFER_CONFIG),
  (int) TimeUnit.HOURS.toMillis(1),
  ClientDnsLookup.forConfig(config.getString(AdminClientConfig.CLIENT_DNS_LOOKUP_CONFIG)),
  time,
  true,
org.apache.kafka.clients.adminAdminClientConfiggetString

Popular methods of AdminClientConfig

  • <init>
  • configNames
  • getInt
  • getLong
  • getConfiguredInstances
  • getList
  • logUnused

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
  • getApplicationContext (Context)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • 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