Tabnine Logo
AvroJobSpecKafkaJobMonitor$Factory
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.apache.gobblin.runtime.job_monitor.AvroJobSpecKafkaJobMonitor$Factory (Showing top 4 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);
}
origin: org.apache.gobblin/gobblin-runtime

@Override
public JobSpecMonitor forJobCatalog(GobblinInstanceDriver instanceDriver, MutableJobCatalog jobCatalog)
  throws IOException {
 Config config = instanceDriver.getSysConfig().getConfig().getConfig(CONFIG_PREFIX).withFallback(DEFAULTS);
 return forConfig(config, jobCatalog);
}
origin: apache/incubator-gobblin

@Override
public JobSpecMonitor forJobCatalog(GobblinInstanceDriver instanceDriver, MutableJobCatalog jobCatalog)
  throws IOException {
 Config config = instanceDriver.getSysConfig().getConfig().getConfig(CONFIG_PREFIX).withFallback(DEFAULTS);
 return forConfig(config, jobCatalog);
}
org.apache.gobblin.runtime.job_monitorAvroJobSpecKafkaJobMonitor$Factory

Most used methods

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSharedPreferences (Context)
  • findViewById (Activity)
  • runOnUiThread (Activity)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top Vim plugins
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