Package org.apache.oodt.cas.catalog.repository

Examples of org.apache.oodt.cas.catalog.repository.CatalogRepository


   * @throws CatalogServiceException On Error loading given CatalogRepository
   */
  protected void setCatalogRepository(CatalogRepository catalogRepository) throws CatalogServiceException {
    if (catalogRepository != null) {
      this.catalogsLock.writeLock().lock();
      CatalogRepository backupRepository = null;
      Set<Catalog> backupCatalogs = null;
      try {
        LOG.log(Level.INFO, "Using CatalogRepository '" + catalogRepository.getClass().getName() + "'");
        backupRepository = this.catalogRepository;
        backupCatalogs = new HashSet<Catalog>(this.catalogs);
View Full Code Here


               new String[] { this.beanRepo }, false);
         appContext.setClassLoader(new Serializer().getClassLoader());
         appContext.refresh();
         CatalogRepositoryFactory factory = (CatalogRepositoryFactory) appContext
               .getBean(this.catalogRepositoryId, CatalogRepositoryFactory.class);
         CatalogRepository catalogRepository = factory.createRepository();
         Set<Catalog> catalogs = catalogRepository.deserializeAllCatalogs();
         printer.println("Deserialized Catalogs: " + catalogs.toString());
         for (Catalog catalog : catalogs) {
            printer.println("Adding Catalog: " + catalog);
            getClient().addCatalog(catalog);
         }
View Full Code Here

   * @throws CatalogServiceException On Error loading given CatalogRepository
   */
  protected void setCatalogRepository(CatalogRepository catalogRepository) throws CatalogServiceException {
    if (catalogRepository != null) {
      this.catalogsLock.writeLock().lock();
      CatalogRepository backupRepository = null;
      Set<Catalog> backupCatalogs = null;
      try {
        LOG.log(Level.INFO, "Using CatalogRepository '" + catalogRepository.getClass().getName() + "'");
        backupRepository = this.catalogRepository;
        backupCatalogs = new HashSet<Catalog>(this.catalogs);
View Full Code Here

  public void performAction(CatalogServiceClient csClient) throws Exception {
    FileSystemXmlApplicationContext appContext = new FileSystemXmlApplicationContext(new String[] { this.beanRepo }, false);
    appContext.setClassLoader(new Serializer().getClassLoader());
    appContext.refresh();
    CatalogRepositoryFactory factory = (CatalogRepositoryFactory) appContext.getBean(this.beanId, CatalogRepositoryFactory.class);
    CatalogRepository catalogRepository = factory.createRepository();
    Set<Catalog> catalogs = catalogRepository.deserializeAllCatalogs();
    System.out.println("Deserialized Catalogs: " + catalogs.toString());
    for (Catalog catalog : catalogs) {
      try {
        System.out.println("Adding Catalog: " + catalog);
        csClient.addCatalog(catalog);
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.catalog.repository.CatalogRepository

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.