Tabnine Logo
org.apache.gobblin.metrics.kafka
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: apache/incubator-gobblin

private static String getSchemaId(Properties properties, Schema schema)
  throws SchemaRegistryException {
 KafkaAvroSchemaRegistry kafkaAvroSchemaRegistry =
   (KafkaAvroSchemaRegistry) new KafkaAvroSchemaRegistryFactory().create(properties);
 return kafkaAvroSchemaRegistry.register(schema);
}
origin: apache/incubator-gobblin

 /**
  * 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));
 }
}
origin: apache/incubator-gobblin

 /**
  * Returns a new {@link Builder} for {@link KafkaAvroEventReporter}.
  *
  * @param context the {@link MetricContext} to report
  * @return KafkaAvroReporter builder
  */
 public static BuilderImpl forContext(MetricContext context) {
  return new BuilderImpl(context);
 }
}
origin: apache/incubator-gobblin

@Override
public KafkaEventReporter.Builder<? extends KafkaEventReporter.Builder> getBuilder(MetricContext context,
                                          Pusher pusher) {
 KafkaAvroEventKeyValueReporter.Builder<?> builder = KafkaAvroEventKeyValueReporter.Factory.forContext(context);
 return builder.withKafkaPusher(pusher).withKeys(Lists.newArrayList("k1", "k2", "k3"));
}
origin: apache/incubator-gobblin

/**
 * Get builder for KafkaReporter (override if testing an extension of KafkaReporter)
 * @return KafkaReporter builder
 */
public KafkaReporter.Builder<? extends KafkaReporter.Builder> getBuilder(Pusher pusher) {
 return KafkaReporter.BuilderFactory.newBuilder().withKafkaPusher(pusher);
}
origin: apache/incubator-gobblin

@Override
public KafkaReporter.Builder<? extends KafkaReporter.Builder> getBuilderFromContext(Pusher pusher) {
 return KafkaAvroReporter.BuilderFactory.newBuilder().withKafkaPusher(pusher);
}
origin: apache/incubator-gobblin

@Override
public KafkaEventReporter.Builder<? extends KafkaEventReporter.Builder> getBuilder(MetricContext context,
  Pusher pusher) {
 return KafkaAvroEventReporter.forContext(context).withKafkaPusher(pusher);
}
origin: apache/incubator-gobblin

/**
 * Get builder for KafkaReporter (override if testing an extension of KafkaReporter)
 * @param context metricregistry
 * @return KafkaReporter builder
 */
public KafkaEventReporter.Builder<? extends KafkaEventReporter.Builder> getBuilder(MetricContext context,
  Pusher pusher) {
 return KafkaEventReporter.Factory.forContext(context).withKafkaPusher(pusher);
}
origin: apache/incubator-gobblin

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

 /**
  * Returns a new {@link Builder} for {@link KafkaEventReporter}.
  * Will automatically add all Context tags to the reporter.
  *
  * @param context the {@link MetricContext} to report
  * @return KafkaReporter builder
  */
 public static BuilderImpl forContext(MetricContext context) {
  return new BuilderImpl(context);
 }
}
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 KafkaSchemaRegistry create(Properties props) {
  return new KafkaAvroSchemaRegistry(props);
 }
}
origin: apache/incubator-gobblin

 public static BuilderImpl newBuilder() {
  return new BuilderImpl();
 }
}
origin: apache/incubator-gobblin

 public static BuilderImpl newBuilder() {
  return new BuilderImpl();
 }
}
origin: apache/incubator-gobblin

 /**
  * Returns a new {@link Builder} for {@link KafkaEventKeyValueReporter}.
  *
  * @param context the {@link MetricContext} to report
  * @return KafkaAvroReporter builder
  */
 public static BuilderImpl forContext(MetricContext context) {
  return new BuilderImpl(context);
 }
}
origin: apache/incubator-gobblin

 /**
  * Returns a new {@link Builder} for {@link KafkaAvroEventKeyValueReporter}.
  *
  * @param context the {@link MetricContext} to report
  * @return KafkaAvroReporter builder
  */
 public static BuilderImpl forContext(MetricContext context) {
  return new BuilderImpl(context);
 }
}
origin: apache/incubator-gobblin

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

@Override
public void close()
  throws IOException {
 super.close();
}
origin: apache/incubator-gobblin

public KafkaReporter.Builder<? extends KafkaReporter.Builder> getBuilderFromContext(Pusher pusher) {
 return KafkaReporter.BuilderFactory.newBuilder().withKafkaPusher(pusher);
}
origin: apache/incubator-gobblin

@Override
public KafkaReporter.Builder<? extends KafkaReporter.Builder> getBuilder(Pusher pusher) {
 return KafkaAvroReporter.BuilderFactory.newBuilder().withKafkaPusher(pusher);
}
org.apache.gobblin.metrics.kafka

Most used classes

  • KafkaSchemaRegistry
    A abstract schema registry class for Kafka, which supports fetching schema by key, fetching the late
  • KafkaAvroSchemaRegistry
    An implementation of KafkaSchemaRegistry.
  • KafkaAvroEventReporter$Builder
    Builder for KafkaAvroEventReporter. Defaults to no filter, reporting rates in seconds and times in m
  • KafkaAvroEventReporter
    org.apache.gobblin.metrics.reporter.EventReporter that emits events to Kafka as serialized Avro reco
  • KafkaEventReporter
    Reports GobblinTrackingEvent to a Kafka topic serialized as JSON.
  • KafkaProducerPusher,
  • KafkaAvroReporter$BuilderFactory,
  • KafkaAvroReporter$BuilderImpl,
  • KafkaEventReporter$Builder,
  • KafkaEventReporter$BuilderImpl,
  • KafkaEventReporter$Factory,
  • KafkaPusher,
  • KafkaReporter$Builder,
  • KafkaReporter$BuilderFactory,
  • KafkaReporter$BuilderImpl,
  • KafkaReporter,
  • LoggingPusher,
  • Pusher,
  • KafkaAvroEventKeyValueReporter$Builder
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