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

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


      return Integer.getInteger("org.apache.oodt.cas.catalog.autoPagerSize", 1000);
   }

   public CatalogServiceClient getClient() {
      if (client == null) {
         CatalogServiceClientFactory factory = new CatalogServiceClientFactory();
         factory.setCommunicationChannelClientFactory(getCommunicationChannelFactory());
         factory.setAutoPagerSize(getAutoPagerSize());
         return client = factory.createCatalogService();
      } else {
         return client;
      }
   }
View Full Code Here


    FileSystemXmlApplicationContext appContext = new FileSystemXmlApplicationContext(new String[] { configFile }, false);
//    appContext.setClassLoader(new Serializer().getClassLoader());
    appContext.refresh();
        List<CmdLineOptionInstance> optionInstances = CmdLineOptionUtils.loadValidateAndHandleInstances(appContext, args);
        CmdLineOptionInstance instance = CmdLineOptionUtils.getOptionInstanceByName("clientFactoryBeanId", optionInstances);
    CatalogServiceClientFactory csClientFactory = (CatalogServiceClientFactory) appContext.getBean(instance.getValues().get(0), CatalogServiceClientFactory.class);
    CatalogServiceClient csClient = csClientFactory.createCatalogService();
        instance = CmdLineOptionUtils.getOptionInstanceByName("action", optionInstances);
    ((CatalogServiceServerAction) appContext.getBean(instance.getValues().get(0), CatalogServiceServerAction.class)).performAction(csClient);
  }
View Full Code Here

    appContext.setClassLoader(new Serializer().getClassLoader());
    appContext.refresh();
    PrintStream ps = new PrintStream(System.out);
        ps.println("ClientFactories:");
        for (String clientId : appContext.getBeanNamesForType(CatalogServiceClientFactory.class)) {
          CatalogServiceClientFactory clientFactory = (CatalogServiceClientFactory) appContext.getBean(clientId, CatalogServiceClientFactory.class);
            ps.println("  ClientFactory:");
            ps.println("    Id: " + clientId);
            ps.println("    URL: " + clientFactory.getServerUrl());
            ps.println();
        }
        ps.close();
  }
View Full Code Here

TOP

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

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.