Tabnine Logo
AvroJobSpecKafkaJobMonitor$Factory.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.gobblin.runtime.job_monitor.AvroJobSpecKafkaJobMonitor$Factory
constructor

Best Java code snippets using org.apache.gobblin.runtime.job_monitor.AvroJobSpecKafkaJobMonitor$Factory.<init> (Showing top 2 results out of 315)

origin: apache/incubator-gobblin

public StreamingKafkaSpecConsumer(Config config, MutableJobCatalog jobCatalog, Optional<Logger> log) {
 String topic = config.getString(SPEC_KAFKA_TOPICS_KEY);
 Config defaults = ConfigFactory.parseMap(ImmutableMap.of(AvroJobSpecKafkaJobMonitor.TOPIC_KEY, topic,
   KafkaJobMonitor.KAFKA_AUTO_OFFSET_RESET_KEY, KafkaJobMonitor.KAFKA_AUTO_OFFSET_RESET_SMALLEST));
 try {
  _jobMonitor = (AvroJobSpecKafkaJobMonitor)(new AvroJobSpecKafkaJobMonitor.Factory())
    .forConfig(config.withFallback(defaults), jobCatalog);
 } catch (IOException e) {
  throw new RuntimeException("Could not create job monitor", e);
 }
 _jobCatalog = jobCatalog;
 _jobSpecQueue = new LinkedBlockingQueue<>(ConfigUtils.getInt(config, "SPEC_STREAMING_BLOCKING_QUEUE_SIZE",
   DEFAULT_SPEC_STREAMING_BLOCKING_QUEUE_SIZE));
 _metricContext = Instrumented.getMetricContext(ConfigUtils.configToState(config), this.getClass());
 _metrics = new Metrics(this._metricContext);
}
origin: org.apache.gobblin/gobblin-service-kafka

public StreamingKafkaSpecConsumer(Config config, MutableJobCatalog jobCatalog, Optional<Logger> log) {
 String topic = config.getString(SPEC_KAFKA_TOPICS_KEY);
 Config defaults = ConfigFactory.parseMap(ImmutableMap.of(AvroJobSpecKafkaJobMonitor.TOPIC_KEY, topic,
   KafkaJobMonitor.KAFKA_AUTO_OFFSET_RESET_KEY, KafkaJobMonitor.KAFKA_AUTO_OFFSET_RESET_SMALLEST));
 try {
  _jobMonitor = (AvroJobSpecKafkaJobMonitor)(new AvroJobSpecKafkaJobMonitor.Factory())
    .forConfig(config.withFallback(defaults), jobCatalog);
 } catch (IOException e) {
  throw new RuntimeException("Could not create job monitor", e);
 }
 _jobCatalog = jobCatalog;
 _jobSpecQueue = new LinkedBlockingQueue<>(ConfigUtils.getInt(config, "SPEC_STREAMING_BLOCKING_QUEUE_SIZE",
   DEFAULT_SPEC_STREAMING_BLOCKING_QUEUE_SIZE));
 _metricContext = Instrumented.getMetricContext(ConfigUtils.configToState(config), this.getClass());
 _metrics = new Metrics(this._metricContext);
}
org.apache.gobblin.runtime.job_monitorAvroJobSpecKafkaJobMonitor$Factory<init>

Popular methods of AvroJobSpecKafkaJobMonitor$Factory

  • forConfig
    Create a AvroJobSpecKafkaJobMonitor from an input Config. Useful for multiple monitors, where the co

Popular in Java

  • Running tasks concurrently on multiple threads
  • runOnUiThread (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSharedPreferences (Context)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JFileChooser (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • CodeWhisperer alternatives
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