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

Examples of org.apache.oodt.cas.catalog.system.CatalogFactory


    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/"));
    catalogFactory.setRestrictIngestPermissions(false);
    catalogFactory.setRestrictQueryPermissions(false);
    cs.addCatalog(catalogFactory.createCatalog());
    catalogFactory.setCatalogId("TestCatalog2");
    catalogFactory.setIndexFactory(getInMemoryDSFactory(tmpDirPath + "/2/"));
    cs.addCatalog(catalogFactory.createCatalog());
  }
View Full Code Here


      factory.setRestrictQueryPermissions(false);
      factory.setTransactionIdFactory(UuidTransactionIdFactory.class
          .getCanonicalName());
      cs = factory.createCatalogService();
 
      CatalogFactory catalogFactory = new CatalogFactory();
      catalogFactory.setCatalogId("TestCatalog1");
      catalogFactory.setDictionaryFactories(null);
      catalogFactory
          .setIndexFactory(getInMemoryDSFactory(testDir.getAbsolutePath() + "/index/1/"));
      catalogFactory.setRestrictIngestPermissions(false);
      catalogFactory.setRestrictQueryPermissions(false);
      cs.addCatalog(catalogFactory.createCatalog());
      catalogFactory.setCatalogId("TestCatalog2");
      catalogFactory
          .setIndexFactory(getInMemoryDSFactory(testDir.getAbsolutePath() + "/index/2/"));
      cs.addCatalog(catalogFactory.createCatalog());
    }catch (Exception e) {
      e.printStackTrace();
      TestCase.fail(e.getMessage());
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.catalog.system.CatalogFactory

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.