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

How to use
getConfig
method
in
com.dremio.service.namespace.source.proto.SourceConfig

Best Java code snippets using com.dremio.service.namespace.source.proto.SourceConfig.getConfig (Showing top 4 results out of 315)

origin: dremio/dremio-oss

public StoragePluginId(
  SourceConfig config,
  ConnectionConf<?, ?> connection,
  SourceCapabilities capabilities
  ) {
 this.config = Preconditions.checkNotNull(config);
 this.connection = connection;
 this.capabilities = capabilities;
 this.hashCode = Objects.hashCode(config, capabilities);
 assert Arrays.equals(connection.toBytes(), config.getConfig().toByteArray());
}
origin: dremio/dremio-oss

@Override
public ConnectionConf<?, ?> getConnectionConf(SourceConfig config) {
 return (ConnectionConf<?, ?>) getConnectionConf(ConnectionReader.toType(config), config.getConfig());
}
origin: dremio/dremio-oss

@Override
public void upgrade(UpgradeContext context) throws Exception {
 final NamespaceService namespaceService = new NamespaceServiceImpl(context.getKVStoreProvider());
 List<SourceConfig> sources = namespaceService.getSources();
 for (SourceConfig sourceConfig : sources) {
  // Pre-1.5, the config object for internal sources was null.  Deleting the internal sources without a config will
  // ensure that they get recreated on startup.
  if (sourceConfig.getConfig() == null) {
   System.out.printf("  deleting '%s'%n", sourceConfig.getName());
   // following may throw an exception, we let it propagate to fail the upgrade
   namespaceService.deleteSource(sourceConfig.getKey(), sourceConfig.getTag());
  }
 }
}
origin: dremio/dremio-oss

@Test
public void testNASFileStore() throws Exception {
 final CatalogServiceImpl catalog = (CatalogServiceImpl) l(CatalogService.class);
 final SourceConfig config = catalog.getManagedSource(HomeFileSystemStoragePlugin.HOME_PLUGIN_NAME).getId().getClonedConfig();
 final ByteString oldConfig = config.getConfig();
 final HomeFileConf nasHomeFileStore = new HomeFileConf(new Path("file:///" + BaseTestServer.folder1.getRoot().toString() + "/" + "testNASFileStore/").toString(), "localhost");
 nasHomeFileStore.getFilesystemAndCreatePaths("localhost");
 config.setConnectionConf(nasHomeFileStore);
 catalog.getSystemUserCatalog().updateSource(config);
 HomeFileTool tool = l(HomeFileTool.class);
 try {
  runTests(nasHomeFileStore);
 } finally {
  tool.clear();
  // reset plugin
  SourceConfig backConfig = catalog.getManagedSource(HomeFileSystemStoragePlugin.HOME_PLUGIN_NAME).getId().getClonedConfig();
  backConfig.setConfig(oldConfig);
  catalog.getSystemUserCatalog().updateSource(backConfig);
 }
}
com.dremio.service.namespace.source.protoSourceConfiggetConfig

Popular methods of SourceConfig

  • <init>
  • setMetadataPolicy
  • setName
  • setConnectionConf
  • setType
  • getTag
  • setConfig
  • getName
  • setId
  • getConfigOrdinal
  • getMetadataPolicy
  • setConfigOrdinal
  • getMetadataPolicy,
  • setConfigOrdinal,
  • setCtime,
  • setTag,
  • setAccelerationGracePeriod,
  • setAccelerationRefreshPeriod,
  • getCtime,
  • getId,
  • equals

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • getSupportFragmentManager (FragmentActivity)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • 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