Package org.apache.oodt.cas.catalog.system.impl

Examples of org.apache.oodt.cas.catalog.system.impl.CatalogServiceLocalFactory


        File tempFile = File.createTempFile("foo", "bar");
        tempFile.deleteOnExit();
        File tempDir = tempFile.getParentFile();
        String tmpDirPath = tempDir.getAbsolutePath();
   
    CatalogServiceLocalFactory factory = new CatalogServiceLocalFactory();
    factory.setCatalogRepositoryFactory(new MemoryBasedCatalogRepositoryFactory());
    factory.setIngestMapperFactory(this.getOracleIngestMapperFactory(tmpDirPath));
    factory.setOneCatalogFailsAllFail(true);
    factory.setSimplifyQueries(true);
    factory.setPluginStorageDir("/dev/null");
    factory.setRestrictIngestPermissions(false);
    factory.setRestrictQueryPermissions(false);
    factory.setTransactionIdFactory(UuidTransactionIdFactory.class.getCanonicalName());
    cs = factory.createCatalogService();
   
    CatalogFactory catalogFactory = new CatalogFactory();
    catalogFactory.setCatalogId("TestCatalog1");
    catalogFactory.setDictionaryFactories(null);
    catalogFactory.setIndexFactory(getInMemoryDSFactory(tmpDirPath + "/1/"));
View Full Code Here


   }

   protected CatalogServiceLocalFactory getCatalogServiceFactory()
         throws InstantiationException, IllegalAccessException,
         ClassNotFoundException {
      CatalogServiceLocalFactory factory = new CatalogServiceLocalFactory();
      factory.setTransactionIdFactory(getTransactionId());
      factory.setCatalogRepositoryFactory(getRepository());
      factory.setIngestMapperFactory(getIngestMapper());
      factory.setRestrictQueryPermissions(getRestrictQueryPermissions());
      factory.setRestrictIngestPermissions(getRestrictIngestPermissions());
      factory.setOneCatalogFailsAllFail(getOneCatalogFailsAllFail());
      factory.setSimplifyQueries(getSimplifyQueries());
      factory.setDisableIntersectingCrossCatalogQueries(
            getDisableIntersectingCrossCatalogQueries());
      factory.setCrossCatalogResultSortingThreshold(
            getCrossCatalogResultSortingThreshold());
      return factory;
   }
View Full Code Here

    try {
      File tempFile = File.createTempFile("foo", "bar");
      tempFile.deleteOnExit();
      testDir = new File(tempFile.getParentFile(), "cas-catalog");
 
      CatalogServiceLocalFactory factory = new CatalogServiceLocalFactory();
      factory
          .setCatalogRepositoryFactory(new MemoryBasedCatalogRepositoryFactory());
      factory.setIngestMapperFactory(this
          .getOracleIngestMapperFactory(testDir.getAbsolutePath() + "/mapper"));
      factory.setOneCatalogFailsAllFail(true);
      factory.setSimplifyQueries(true);
      factory.setPluginStorageDir("/dev/null");
      factory.setRestrictIngestPermissions(false);
      factory.setRestrictQueryPermissions(false);
      factory.setTransactionIdFactory(UuidTransactionIdFactory.class
          .getCanonicalName());
      cs = factory.createCatalogService();
 
      CatalogFactory catalogFactory = new CatalogFactory();
      catalogFactory.setCatalogId("TestCatalog1");
      catalogFactory.setDictionaryFactories(null);
      catalogFactory
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.catalog.system.impl.CatalogServiceLocalFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.