Package org.apache.airavata.registry.api

Examples of org.apache.airavata.registry.api.AiravataRegistry


                // client.removeResource(workflowQName);
                // }
                String workflowAsString = XMLUtil.xmlElementToString(workflow.toXML());
                String owner = this.engine.getConfiguration().getRegistryUserName();

                AiravataRegistry registry = this.connectToRegistry();
                boolean result = registry.saveWorkflow(workflowQName, workflow.getName(), workflow.getDescription(), workflowAsString,
                        owner, registryPublishingWindow.isMakePublic());
                registryPublishingWindow.hide();
                return result;
            } catch (Exception e) {
                this.engine.getErrorWindow().error(e.getMessage(), e);
View Full Code Here


     * @param workflowTemplateId
     * @throws RepositoryException
     */
    public void deleteOGCEWorkflow(QName workflowTemplateId) throws RegistryException {
        if (XBayaUtil.acquireJCRRegistry(this.engine)) {
            AiravataRegistry registry = connectToRegistry();
            registry.deleteWorkflow(workflowTemplateId, this.engine.getConfiguration().getRegistryUserName());
        }
    }
View Full Code Here

     *
     * @param qname
     * @return
     */
    public Workflow getWorkflow(QName qname) throws RegistryException {
        AiravataRegistry registry = connectToRegistry();
        Node node = registry.getWorkflow(qname, this.engine.getConfiguration().getRegistryUserName());
        Workflow workflow = null;
        try {
            XmlElement xwf = XMLUtil.stringToXmlElement(node.getProperty("workflow").getString());
            workflow = new Workflow(xwf);
        } catch (GraphException e) {
View Full Code Here

    private static Logger log = LoggerFactory.getLogger(SchedulerImpl.class);

    public Provider schedule(InvocationContext context) throws SchedulerException {

        AiravataRegistry registryService = context.getExecutionContext().getRegistryService();

        /*
         * Load Service
         */
        ServiceDescription serviceDesc = null;
        try {
            serviceDesc = registryService.getServiceDescription(context.getServiceName());
        } catch (RegistryException e2) {
            e2.printStackTrace();
        }

        if (serviceDesc == null)
            throw new SchedulerException("Service Desciption for " + context.getServiceName()
                    + " does not found on resource Catalog " + registryService);

        /*
         * Load host
         */
        HostDescription host = scheduleToHost(registryService, context.getServiceName());

        if (host == null)
            throw new SchedulerException("Host Desciption for " + context.getServiceName()
                    + " does not found on resource Catalog " + registryService);

        /*
         * Load app
         */
        ApplicationDeploymentDescription app = null;
        try {
            app = registryService.getDeploymentDescription(context.getServiceName(), host.getType().getHostName());
        } catch (RegistryException e2) {
            e2.printStackTrace();
        }

        if (app == null)
View Full Code Here

TOP

Related Classes of org.apache.airavata.registry.api.AiravataRegistry

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.