/** * Builds and returns {@link KafkaAvroReporter}. * * @param brokers string of Kafka brokers * @param topic topic to send metrics to * @return KafkaAvroReporter */ public KafkaAvroReporter build(String brokers, String topic, Properties props) throws IOException { this.brokers = brokers; this.topic = topic; // create a KafkaAvroReporter with metrics.* and gobblin.kafka.sharedConfig.* keys return new KafkaAvroReporter(this, KafkaReporter.getKafkaAndMetricsConfigFromProperties(props)); } }
/** * Builds and returns {@link KafkaReporter}. * * @param brokers string of Kafka brokers * @param topic topic to send metrics to * @return KafkaReporter */ public KafkaReporter build(String brokers, String topic, Properties props) throws IOException { this.brokers = brokers; this.topic = topic; // create a KafkaReporter with metrics.* and gobblin.kafka.sharedConfig.* keys return new KafkaReporter(this, KafkaReporter.getKafkaAndMetricsConfigFromProperties(props)); } }
/** * Builds and returns {@link KafkaReporter}. * * @param brokers string of Kafka brokers * @param topic topic to send metrics to * @return KafkaReporter */ public KafkaReporter build(String brokers, String topic, Properties props) throws IOException { this.brokers = brokers; this.topic = topic; // create a KafkaReporter with metrics.* and gobblin.kafka.sharedConfig.* keys return new KafkaReporter(this, KafkaReporter.getKafkaAndMetricsConfigFromProperties(props)); } }
/** * Builds and returns {@link KafkaAvroReporter}. * * @param brokers string of Kafka brokers * @param topic topic to send metrics to * @return KafkaAvroReporter */ public KafkaAvroReporter build(String brokers, String topic, Properties props) throws IOException { this.brokers = brokers; this.topic = topic; // create a KafkaAvroReporter with metrics.* and gobblin.kafka.sharedConfig.* keys return new KafkaAvroReporter(this, KafkaReporter.getKafkaAndMetricsConfigFromProperties(props)); } }