Tabnine Logo
KafkaEventReporter
Code IndexAdd Tabnine to your IDE (free)

How to use
KafkaEventReporter
in
org.apache.gobblin.metrics.kafka

Best Java code snippets using org.apache.gobblin.metrics.kafka.KafkaEventReporter (Showing top 8 results out of 315)

origin: apache/incubator-gobblin

/**
 * Builds and returns {@link KafkaEventReporter}.
 *
 * @param brokers string of Kafka brokers
 * @param topic topic to send metrics to
 * @return KafkaReporter
 */
public KafkaEventReporter build(String brokers, String topic) throws IOException {
 this.brokers = brokers;
 this.topic = topic;
 return new KafkaEventReporter(this);
}
origin: apache/incubator-gobblin

public KafkaEventReporter(Builder<?> builder) throws IOException {
 super(builder);
 this.serializer = this.closer.register(
   createSerializer(new FixedSchemaVersionWriter()));
 if(builder.kafkaPusher.isPresent()) {
  this.kafkaPusher = builder.kafkaPusher.get();
 } else {
   String pusherClassName = builder.pusherClassName.or(PusherUtils.DEFAULT_KAFKA_PUSHER_CLASS_NAME);
   this.kafkaPusher = PusherUtils.getPusher(pusherClassName, builder.brokers, builder.topic, builder.config);
 }
 this.closer.register(this.kafkaPusher);
}
origin: apache/incubator-gobblin

kafkaReporter.report();
origin: apache/incubator-gobblin

kafkaReporter.report();
origin: apache/incubator-gobblin

context.submitEvent(event);
kafkaReporter.report();
context.submitEvent(event);
kafkaReporter.report();
origin: org.apache.gobblin/gobblin-kafka-common

public KafkaEventReporter(Builder<?> builder) throws IOException {
 super(builder);
 this.serializer = this.closer.register(
   createSerializer(new FixedSchemaVersionWriter()));
 if(builder.kafkaPusher.isPresent()) {
  this.kafkaPusher = builder.kafkaPusher.get();
 } else {
   String pusherClassName = builder.pusherClassName.or(PusherUtils.DEFAULT_KAFKA_PUSHER_CLASS_NAME);
   this.kafkaPusher = PusherUtils.getPusher(pusherClassName, builder.brokers, builder.topic, builder.config);
 }
 this.closer.register(this.kafkaPusher);
}
origin: org.apache.gobblin/gobblin-kafka-common

/**
 * Builds and returns {@link KafkaEventReporter}.
 *
 * @param brokers string of Kafka brokers
 * @param topic topic to send metrics to
 * @return KafkaReporter
 */
public KafkaEventReporter build(String brokers, String topic) throws IOException {
 this.brokers = brokers;
 this.topic = topic;
 return new KafkaEventReporter(this);
}
origin: apache/incubator-gobblin

kafkaReporter.report();
org.apache.gobblin.metrics.kafkaKafkaEventReporter

Javadoc

Reports GobblinTrackingEvent to a Kafka topic serialized as JSON.

Most used methods

  • <init>
  • createSerializer
  • report

Popular in Java

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Top plugins for WebStorm
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