Examples of JCRComponentRegistry


Examples of org.apache.airavata.xbaya.component.registry.JCRComponentRegistry

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

Examples of org.apache.airavata.xbaya.component.registry.JCRComponentRegistry

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

Examples of org.apache.airavata.xbaya.component.registry.JCRComponentRegistry

    private void ok() {
        setData();
        String status = updateStatus();
        if (status == null) {
            try {
                JCRComponentRegistry registry = new JCRComponentRegistry(getUrl().toURI(), "anonymous", "");
                registry.getUserManager().createUser(getUsername(), getPassword());
                hide();
                setUserCreated(true);
            } catch (URISyntaxException e) {
                e.printStackTrace();
                engine.getErrorWindow().error(e.getMessage());
View Full Code Here

Examples of org.apache.airavata.xbaya.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(new URI(jcrURL),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
                                if(jcrComponentRegistry.getRegistry().getHostDescription(host.getType().getHostName()) == null){
                                    log.info("Saving the predefined Host: " + host.getType().getHostName());
View Full Code Here

Examples of org.apache.airavata.xbaya.component.registry.JCRComponentRegistry

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

    private AiravataRegistry connectToRegistry() {
        JCRComponentRegistry jcrComponentRegistry = this.engine.getConfiguration().getJcrComponentRegistry();
        return jcrComponentRegistry.getRegistry();
    }
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.