Examples of JCRComponentRegistry


Examples of org.apache.airavata.workflow.model.component.registry.JCRComponentRegistry

        this.airavataAPI = airavataAPI;
        if (airavataAPI != null && airavataAPI instanceof Observable) {
            ((Observable) airavataAPI).addObserver(this);
        }
        if (getJcrComponentRegistry()==null){
          setJcrComponentRegistry(new JCRComponentRegistry(airavataAPI));
        }else{
          getJcrComponentRegistry().setAiravataAPI(airavataAPI);
        }
        triggerObservers(getJcrComponentRegistry());
    }
View Full Code Here

Examples of org.apache.airavata.workflow.model.component.registry.JCRComponentRegistry

        this.airavataAPI = airavataAPI;
        if (airavataAPI != null && airavataAPI instanceof Observable) {
            ((Observable) airavataAPI).addObserver(this);
        }
        if (getJcrComponentRegistry()==null){
          setJcrComponentRegistry(new JCRComponentRegistry(airavataAPI));
        }else{
          getJcrComponentRegistry().setAiravataAPI(airavataAPI);
        }
        triggerObservers(getJcrComponentRegistry());
    }
View Full Code Here

Examples of org.apache.airavata.workflow.model.component.registry.JCRComponentRegistry

                } else {
                    String message = "Unknown option: " + arg;
                    logger.error(message);
                    this.config.addError(new WorkflowException(message));
                }
                this.config.setJcrComponentRegistry(new JCRComponentRegistry(this.config.getRegistryUserName(),this.config.getRegistryPassphrase()));
                index++;
            }
        } catch (ArrayIndexOutOfBoundsException e) {
            String message = "Argument is missing after " + args[args.length - 1];
            logger.error(message, e);
View Full Code Here

Examples of org.apache.airavata.workflow.model.component.registry.JCRComponentRegistry

            URL url = getXBayaPropertiesURL();
            properties.load(url.openStream());
            jcrUserName = (String)properties.get(JCR_USER);
            jcrPassword = (String) properties.get(JCR_PASS);
            jcrURL = (String) properties.get(JCR_URL);
            jcrComponentRegistry = new JCRComponentRegistry(jcrUserName,jcrPassword);
            return jcrComponentRegistry.getRegistry();
        } catch (RegistryException e) {
            e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
        } catch (IOException e) {
      e.printStackTrace();
View Full Code Here

Examples of org.apache.airavata.workflow.model.component.registry.JCRComponentRegistry

                provenanceWriterThreadPoolSize = Integer.parseInt((String) properties.get(PROVENANCE_WRITER_THREAD_POOL_SIZE));
                if("true".equals(properties.get(PROVENANCE))){
                    provenance = true;
                    runner = new PredicatedTaskRunner(provenanceWriterThreadPoolSize);
                    try {
                        jcrComponentRegistry = new JCRComponentRegistry(jcrUserName,jcrPassword);
                            List<HostDescription> hostList = getDefinedHostDescriptions();
                            for(HostDescription host:hostList){
                                // This will avoid the changes user is doing to one of the predefined Hosts during a restart of the system
                                AiravataRegistry2 registry = jcrComponentRegistry.getRegistry();
                if(!registry.isHostDescriptorExists(host.getType().getHostName())){
View Full Code Here

Examples of org.apache.airavata.workflow.model.component.registry.JCRComponentRegistry

  private static AiravataRegistry2 getRegistryObject(
                                                      String jcrUsername,
                                                      String jcrPassword)
            throws RegistryException {
        AiravataRegistry2 registry = new JCRComponentRegistry(jcrUsername,jcrPassword).getRegistry();
        return registry;
  }
View Full Code Here

Examples of org.apache.airavata.workflow.model.component.registry.JCRComponentRegistry

            url = new URI(urlString);
        } catch (URISyntaxException e) {
            this.engine.getGUI().getErrorWindow().error(ErrorMessages.URL_WRONG, e);
            return;
        }
        JCRComponentRegistry registry = null;
        try {
            registry = new JCRComponentRegistry(username, password);
        } catch (Exception e) {
            this.engine.getGUI().getErrorWindow().error(e.getMessage());
            return;
        }
        XBayaConfiguration configuration = this.engine.getConfiguration();
View Full Code Here

Examples of org.apache.airavata.workflow.model.component.registry.JCRComponentRegistry

    public RegistryAccesser(XBayaEngine engine) {
        this.engine = engine;
    }

    private AiravataRegistry2 connectToRegistry() {
        JCRComponentRegistry jcrComponentRegistry = this.engine.getConfiguration().getJcrComponentRegistry();
        return jcrComponentRegistry.getRegistry();
    }
View Full Code Here

Examples of org.apache.airavata.workflow.model.component.registry.JCRComponentRegistry

    }
   
    private void loadDefaultGraph() {
        if (this.engine.getConfiguration().getWorkflow() != null) {
            this.newGraphCanvas(true, false);
            JCRComponentRegistry jcrComponentRegistry = this.engine.getConfiguration().getJcrComponentRegistry();
            try {
              String xml = jcrComponentRegistry.getRegistry().getWorkflowGraphXML(this.engine.getConfiguration().getWorkflow());
                XmlElement xwf = XMLUtil.stringToXmlElement(xml);
                Workflow workflow = new Workflow(xwf);
                setWorkflow(workflow);
            } catch (RegistryException e) {
               getErrorWindow().error(ErrorMessages.REPOSITORY_CONFIGURATION_IS_WRONG_FAILED_TO_LOAD_THE_WORKFLOW, e);
View Full Code Here

Examples of org.apache.airavata.workflow.model.component.registry.JCRComponentRegistry

    private void ok() {
        setData();
        String status = updateStatus();
        if (status == null) {
            try {
                JCRComponentRegistry registry = new JCRComponentRegistry(getUsername(),getPassword());
            } catch (RegistryException e) {
                e.printStackTrace();
                engine.getGUI().getErrorWindow().error(e.getMessage());
            }
        } else {
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.