Examples of AiravataJCRRegistry


Examples of org.apache.airavata.registry.api.impl.AiravataJCRRegistry

    @Before
    public void setUp() throws Exception {
        Map<String,String> config = new HashMap<String,String>();
            config.put("org.apache.jackrabbit.repository.home","target");

        jcrRegistry = new AiravataJCRRegistry(null,
                "org.apache.jackrabbit.core.RepositoryFactoryImpl", "admin",
                "admin", config);

        // Host
        URL url = this.getClass().getClassLoader().getResource(GRAM_PROPERTIES);
View Full Code Here

Examples of org.apache.airavata.registry.api.impl.AiravataJCRRegistry

                if (map.size() == 0)
                    map = null;

                try {
                    // TODO pass the url of the registry as the first parameter
                    this.registryService = new AiravataJCRRegistry(null, jcrClass, userName, password, map);
                } catch (javax.jcr.RepositoryException e) {
                    e.printStackTrace(); // To change body of catch statement use File | Settings | File Templates.
                }

                log.info("Default registry service is created");
View Full Code Here

Examples of org.apache.airavata.registry.api.impl.AiravataJCRRegistry

                try {
            Thread.sleep(JCR_AVAIALABILITY_WAIT_INTERVAL);
          } catch (InterruptedException e1) {
            e1.printStackTrace();
          }
          AiravataRegistry registry = new AiravataJCRRegistry(
              new URI(
                  map.get(ORG_APACHE_JACKRABBIT_REPOSITORY_URI)),
              map.get(JCR_CLASS), map.get(JCR_USER), map
                  .get(JCR_PASS), map);
          String localAddress = Utils.getIpAddress(context
View Full Code Here

Examples of org.apache.airavata.registry.api.impl.AiravataJCRRegistry

              try {
                Thread.sleep(JCR_AVAIALABILITY_WAIT_INTERVAL);
              } catch (InterruptedException e1) {
                e1.printStackTrace();
              }
              AiravataRegistry registry = new AiravataJCRRegistry(
                  new URI(
                      map.get(ORG_APACHE_JACKRABBIT_REPOSITORY_URI)),
                  map.get(JCR_CLASS), map.get(JCR_USER), map
                      .get(JCR_PASS), map);
              String localAddress = ServiceUtils
View Full Code Here

Examples of org.apache.airavata.registry.api.impl.AiravataJCRRegistry

            throw new XRegistryMigrationException("Invalid JCR Registry URL " + e.getMessage(), e);
        }
        config.put("org.apache.jackrabbit.repository.uri", uri.toString());

        try {
            jcrRegistry = new AiravataJCRRegistry(uri,
                    "org.apache.jackrabbit.rmi.repository.RmiRepositoryFactory",
                    jcrUsername, jcrPassword, config);
        } catch (RepositoryException e) {
            throw new XRegistryMigrationException("Issue creating the JCR Registry instance " +
                    e.getMessage(), e);
View Full Code Here

Examples of org.apache.airavata.registry.api.impl.AiravataJCRRegistry

            configurationContext.setProperty(JCR_USERNAME, properties.get(JCR_USERNAME));
            String jcrUserName = (String)properties.get(JCR_PASSWORD);
            String jcrPassword = (String) properties.get(JCR_USERNAME);
            String jcrURL = (String) properties.get(JRC_URL);
            String className = (String)properties.get(JCR_CLASS);
            registry = new AiravataJCRRegistry(new URI(jcrURL),className,jcrUserName,jcrPassword,new HashMap<String,String>());
        } catch (IOException e) {
            e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
        } catch (RepositoryException e) {
            e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
        } catch (URISyntaxException e) {
View Full Code Here

Examples of org.apache.airavata.registry.api.impl.AiravataJCRRegistry

            configurationContext.setProperty(JCR_USERNAME, properties.get(JCR_USERNAME));
            String jcrUserName = (String)properties.get(JCR_PASSWORD);
            String jcrPassword = (String) properties.get(JCR_USERNAME);
            String jcrURL = (String) properties.get(JRC_URL);
            String className = (String)properties.get(JCR_CLASS);
            registry = new AiravataJCRRegistry(new URI(jcrURL),className,jcrUserName,jcrPassword,new HashMap<String,String>());
        } catch (IOException e) {
            e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
        } catch (RepositoryException e) {
            e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
        } catch (URISyntaxException e) {
View Full Code Here

Examples of org.apache.airavata.registry.api.impl.AiravataJCRRegistry

    public JCRComponentRegistry(URI url, String username, String password) throws RepositoryException {
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("org.apache.jackrabbit.repository.uri", url.toString());
        try {
            this.registry = new AiravataJCRRegistry(url, "org.apache.jackrabbit.rmi.repository.RmiRepositoryFactory", username,
                    password, map);
        } catch (RepositoryException e) {
            throw e;
        }
    }
View Full Code Here

Examples of org.apache.airavata.registry.api.impl.AiravataJCRRegistry

                if (map.size() == 0)
                    map = null;

                try {
                    // TODO pass the url of the registry as the first parameter
                    this.registryService = new AiravataJCRRegistry(null, jcrClass, userName, password, map);
                } catch (javax.jcr.RepositoryException e) {
                    e.printStackTrace(); // To change body of catch statement use File | Settings | File Templates.
                }

                log.info("Default registry service is created");
View Full Code Here

Examples of org.apache.airavata.registry.api.impl.AiravataJCRRegistry

    if (registry == null) {
      try {
        HashMap<String, String> map = new HashMap<String, String>();
        URI uri = getClientConfiguration().getJcrURL().toURI();
        map.put("org.apache.jackrabbit.repository.uri", uri.toString());
        registry = new AiravataJCRRegistry(
            uri,
            "org.apache.jackrabbit.rmi.repository.RmiRepositoryFactory",
            getClientConfiguration().getJcrUsername(),
            getClientConfiguration().getJcrPassword(), map);
      } catch (RepositoryException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.