congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
KafkaAvroEventReporter$Builder
Code IndexAdd Tabnine to your IDE (free)

How to use
KafkaAvroEventReporter$Builder
in
org.apache.gobblin.metrics.kafka

Best Java code snippets using org.apache.gobblin.metrics.kafka.KafkaAvroEventReporter$Builder (Showing top 6 results out of 315)

origin: apache/incubator-gobblin

KafkaAvroEventReporter.forContext(context).withKafkaPusher(pusher)
  .withSchemaRegistry(registry).build("localhost:0000", "topic");
origin: apache/incubator-gobblin

public T withSchemaRegistry(KafkaAvroSchemaRegistry registry) {
 this.registry = Optional.of(registry);
 return self();
}
origin: org.apache.gobblin/gobblin-kafka-common

 /**
  * Get a {@link org.apache.gobblin.metrics.kafka.KafkaEventReporter.Builder} for this reporting format.
  * @param context {@link MetricContext} that should be reported.
  * @param properties {@link Properties} containing information to build reporters.
  * @return {@link org.apache.gobblin.metrics.kafka.KafkaEventReporter.Builder}.
  */
 public KafkaEventReporter.Builder<?> eventReporterBuilder(MetricContext context, Properties properties) {
  switch (this) {
   case AVRO:
    KafkaAvroEventReporter.Builder<?> builder = KafkaAvroEventReporter.Factory.forContext(context);
    if (Boolean.valueOf(properties.getProperty(ConfigurationKeys.METRICS_REPORTING_KAFKA_USE_SCHEMA_REGISTRY,
      ConfigurationKeys.DEFAULT_METRICS_REPORTING_KAFKA_USE_SCHEMA_REGISTRY))) {
     builder.withSchemaRegistry(new KafkaAvroSchemaRegistry(properties));
    }
    return builder;
   case JSON:
    return KafkaEventReporter.Factory.forContext(context);
   default:
    // This should never happen.
    throw new IllegalArgumentException("KafkaReportingFormat not recognized.");
  }
 }
}
origin: org.apache.gobblin/gobblin-kafka-common

public T withSchemaRegistry(KafkaAvroSchemaRegistry registry) {
 this.registry = Optional.of(registry);
 return self();
}
origin: apache/incubator-gobblin

if (Boolean.valueOf(properties.getProperty(ConfigurationKeys.METRICS_REPORTING_KAFKA_USE_SCHEMA_REGISTRY,
  ConfigurationKeys.DEFAULT_METRICS_REPORTING_KAFKA_USE_SCHEMA_REGISTRY))) {
 kafkaAvroEventReporterBuilder.withSchemaRegistry(new KafkaAvroSchemaRegistry(properties));
origin: apache/incubator-gobblin

@Override
public KafkaEventReporter.Builder<? extends KafkaEventReporter.Builder> getBuilder(MetricContext context,
  Pusher pusher) {
 return KafkaAvroEventReporter.forContext(context).withKafkaPusher(pusher);
}
org.apache.gobblin.metrics.kafkaKafkaAvroEventReporter$Builder

Javadoc

Builder for KafkaAvroEventReporter. Defaults to no filter, reporting rates in seconds and times in milliseconds.

Most used methods

  • withSchemaRegistry
  • self
  • withKafkaPusher
  • build
    Builds and returns KafkaAvroEventReporter.

Popular in Java

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now