Tabnine Logo
Configurable.getConfig
Code IndexAdd Tabnine to your IDE (free)

How to use
getConfig
method
in
org.apache.gobblin.runtime.api.Configurable

Best Java code snippets using org.apache.gobblin.runtime.api.Configurable.getConfig (Showing top 20 results out of 315)

origin: apache/incubator-gobblin

/** {@inheritDoc} */
@Override
public Config getConfig() {
 return _instanceConf.getConfig();
}
origin: apache/incubator-gobblin

private MetricContext constructMetricContext(Configurable sysConfig, Logger log) {
 org.apache.gobblin.configuration.State tmpState = new org.apache.gobblin.configuration.State(sysConfig.getConfigAsProperties());
 return GobblinMetrics.isEnabled(sysConfig.getConfig()) ?
    Instrumented.getMetricContext(tmpState, getClass())
    : null;
}
origin: apache/incubator-gobblin

public FSSpecStore(GobblinInstanceEnvironment env, SpecSerDe specSerDe)
  throws IOException {
 this(env.getSysConfig().getConfig(), specSerDe, Optional.<Logger>absent());
}
origin: apache/incubator-gobblin

public FSSpecStore(GobblinInstanceEnvironment env, SpecSerDe specSerDe, Optional<Logger> log)
  throws IOException {
 this(env.getSysConfig().getConfig(), specSerDe, log);
}
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);
}
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);
}
origin: apache/incubator-gobblin

public QuartzJobSpecScheduler(GobblinInstanceEnvironment env) {
 this(Optional.of(env.getLog()), env.getSysConfig().getConfig(),
    Optional.<SchedulerService>absent());
}
origin: apache/incubator-gobblin

public boolean getDefaultInstrumentationEnabled() {
 return _gobblinEnv.isPresent() ? _gobblinEnv.get().isInstrumentationEnabled() :
   GobblinMetrics.isEnabled(getSysConfig().getConfig());
}
origin: apache/incubator-gobblin

 @Override
 public GobblinInstancePlugin createPlugin(GobblinInstanceDriver instance) {
  return new HadoopKerberosKeytabAuthenticationPlugin(instance.getSysConfig().getConfig(), _loginUser,
    _loginUserKeytabFile);
 }
}
origin: apache/incubator-gobblin

@Override
public GobblinInstancePlugin createPlugin(GobblinInstanceDriver instance) {
 return createPlugin(instance.getSysConfig().getConfig());
}
origin: apache/incubator-gobblin

public ImmutableFSJobCatalog(GobblinInstanceEnvironment env)
  throws IOException {
 this(env.getSysConfig().getConfig(), null, Optional.of(env.getMetricContext()),
    env.isInstrumentationEnabled());
}
origin: apache/incubator-gobblin

public boolean getDefaultInstrumentationEnabled() {
 return GobblinMetrics.isEnabled(getSysConfig().getConfig());
}
origin: apache/incubator-gobblin

private boolean getDefaultInstrumentationEnabled() {
 return GobblinMetrics.isEnabled(getSysConfig().getConfig());
}
origin: apache/incubator-gobblin

public ImmutableFSJobCatalog(GobblinInstanceEnvironment env, PathAlterationObserver observer)
  throws IOException {
 this(env.getSysConfig().getConfig(), observer, Optional.of(env.getMetricContext()),
    env.isInstrumentationEnabled());
}
origin: apache/incubator-gobblin

public DefaultGobblinInstanceDriverImpl(String instanceName,
  Configurable sysConfig, JobCatalog jobCatalog,
  JobSpecScheduler jobScheduler,
  JobExecutionLauncher jobLauncher,
  Optional<MetricContext> baseMetricContext,
  Optional<Logger> log,
  SharedResourcesBroker<GobblinScopeTypes> instanceBroker) {
 Preconditions.checkNotNull(jobCatalog);
 Preconditions.checkNotNull(jobScheduler);
 Preconditions.checkNotNull(jobLauncher);
 Preconditions.checkNotNull(sysConfig);
 _instanceName = instanceName;
 _log = log.or(LoggerFactory.getLogger(getClass()));
 _metricCtx = baseMetricContext.or(constructMetricContext(sysConfig, _log));
 _instrumentationEnabled = null != _metricCtx && GobblinMetrics.isEnabled(sysConfig.getConfig());
 _jobCatalog = jobCatalog;
 _jobScheduler = jobScheduler;
 _jobLauncher = jobLauncher;
 _sysConfig = sysConfig;
 _instanceCfg = ConfigAccessor.createFromGlobalConfig(_sysConfig.getConfig());
 _callbacksDispatcher = new JobLifecycleListenersList(_jobCatalog, _jobScheduler, _log);
 _instanceBroker = instanceBroker;
 _metrics = new StandardMetrics(this);
}
origin: apache/incubator-gobblin

/**
 * Returns the list of plugins as defined in the system configuration. These are the
 * defined in the PLUGINS_FULL_KEY config option.
 * The list also includes plugins that are automatically added by gobblin.
 * */
public List<GobblinInstancePluginFactory> getDefaultPlugins() {
 List<String> pluginNames =
   ConfigUtils.getStringList(getSysConfig().getConfig(), PLUGINS_FULL_KEY);
 List<GobblinInstancePluginFactory> pluginFactories = Lists.newArrayList();
 // By default email notification plugin is added.
 if (!ConfigUtils.getBoolean(getSysConfig().getConfig(), EmailNotificationPlugin.EMAIL_NOTIFICATIONS_DISABLED_KEY,
   EmailNotificationPlugin.EMAIL_NOTIFICATIONS_DISABLED_DEFAULT)) {
  pluginFactories.add(new EmailNotificationPlugin.Factory());
 }
 pluginFactories.addAll(Lists.transform(pluginNames, new Function<String, GobblinInstancePluginFactory>() {
  @Override public GobblinInstancePluginFactory apply(String input) {
   Class<? extends GobblinInstancePluginFactory> factoryClass;
   try {
    factoryClass = _aliasResolver.resolveClass(input);
    return factoryClass.newInstance();
   } catch (ClassNotFoundException|InstantiationException|IllegalAccessException e) {
    throw new RuntimeException("Unable to instantiate plugin factory " + input + ": " + e, e);
   }
  }
 }));
 return pluginFactories;
}
origin: apache/incubator-gobblin

public SharedResourcesBroker<GobblinScopeTypes> getDefaultInstanceBroker() {
 getLog().warn("Creating a default instance broker for job launcher. Objects may not be shared across all jobs in this instance.");
 SharedResourcesBrokerImpl<GobblinScopeTypes> globalBroker =
   SharedResourcesBrokerFactory.createDefaultTopLevelBroker(getSysConfig().getConfig(),
     GobblinScopeTypes.GLOBAL.defaultScopeInstance());
 return globalBroker.newSubscopedBuilder(new SimpleScope<>(GobblinScopeTypes.INSTANCE, getInstanceName())).build();
}
origin: apache/incubator-gobblin

public SharedResourcesBroker<GobblinScopeTypes> getDefaultInstanceBroker() {
 SharedResourcesBrokerImpl<GobblinScopeTypes> globalBroker =
   SharedResourcesBrokerFactory.createDefaultTopLevelBroker(getSysConfig().getConfig(),
     GobblinScopeTypes.GLOBAL.defaultScopeInstance());
 return globalBroker.newSubscopedBuilder(new SimpleScope<>(GobblinScopeTypes.INSTANCE, getInstanceName())).build();
}
origin: apache/incubator-gobblin

public SharedResourcesBroker<GobblinScopeTypes> getDefaultInstanceBroker() {
 SharedResourcesBrokerImpl<GobblinScopeTypes> globalBroker =
   SharedResourcesBrokerFactory.createDefaultTopLevelBroker(getSysConfig().getConfig(),
     GobblinScopeTypes.GLOBAL.defaultScopeInstance());
 return globalBroker.newSubscopedBuilder(new SimpleScope<>(GobblinScopeTypes.INSTANCE, getInstanceName())).build();
}
origin: org.apache.gobblin/gobblin-runtime

public SharedResourcesBroker<GobblinScopeTypes> getDefaultInstanceBroker() {
 SharedResourcesBrokerImpl<GobblinScopeTypes> globalBroker =
   SharedResourcesBrokerFactory.createDefaultTopLevelBroker(getSysConfig().getConfig(),
     GobblinScopeTypes.GLOBAL.defaultScopeInstance());
 return globalBroker.newSubscopedBuilder(new SimpleScope<>(GobblinScopeTypes.INSTANCE, getInstanceName())).build();
}
org.apache.gobblin.runtime.apiConfigurablegetConfig

Javadoc

The configuration

Popular methods of Configurable

  • getConfigAsProperties
    The configuration as properties collection for backwards compatibility.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • getExternalFilesDir (Context)
  • getApplicationContext (Context)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top plugins for Android Studio
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