Package org.apache.airavata.registry.api

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


        }
       
        synchronized (initialized) {
      if (initialized) {
        initialized = false;
        AiravataRegistry registry = (AiravataRegistry) configurationcontext
            .getProperty(JCR_REGISTRY);
        URI gfacURL = (URI) configurationcontext
            .getProperty(SERVICE_URL);
        try {
          registry.deleteEventingServiceURL(gfacURL);
          thread.interrupt();
          try {
            thread.join();
          } catch (InterruptedException e) {
            log.info("Message box url update thread is interrupted");
View Full Code Here


              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

        public void run() {
            try {
                while (true) {
                    try {
            AiravataRegistry registry = (AiravataRegistry)context.getProperty(JCR_REGISTRY);
            URI localAddress = (URI) this.context.getProperty(SERVICE_URL);
            registry.saveEventingServiceURL(localAddress);
            log.info("Updated the Eventing service URL in to Repository");
            Thread.sleep(GFAC_URL_UPDATE_INTERVAL);
          } catch (RegistryException e) {
            //in case of an registry exception best to retry sooner
            log.error("Error saving Eventing service url",e);
View Full Code Here

      ComponentRegistry componentRegistry=(ComponentRegistry)o;
      if (observableRegistry!=null){
        observableRegistry.deleteObserver(this);
      }
      if (componentRegistry instanceof JCRComponentRegistry){
        AiravataRegistry registry = ((JCRComponentRegistry)componentRegistry).getRegistry();
        if (registry!=null && registry instanceof Observable){
          (observableRegistry=(Observable)registry).addObserver(this);
        }
      }
      load(componentRegistry);
View Full Code Here

    }

    private void deleteServiceDescription(JTree tree) throws Exception {
        if (askQuestion("Service descriptions",
                "Are you sure that you want to remove all service descriptions in this registry?")) {
            AiravataRegistry registry = getRegistry();
            List<ServiceDescription> descriptions = getServiceDescriptions().getDescriptions();
            for (ServiceDescription descriptionWrap : descriptions) {
                registry.deleteServiceDescription(descriptionWrap.getType().getName());
            }
            refresh();
            reloadTreeNode(tree, this);
        }
    }
View Full Code Here

    }

    private void deleteHostDescription(JTree tree) throws Exception {
        if (askQuestion("Host descriptions",
                "Are you sure that you want to remove all host descriptions in this registry?")) {
            AiravataRegistry registry = getRegistry();
            List<HostDescription> descriptions = getHostDescriptions().getDescriptions();
            for (HostDescription descriptionWrap : descriptions) {
                registry.deleteHostDescription(descriptionWrap.getType().getHostName());
            }
            refresh();
            reloadTreeNode(tree, this);
        }
    }
View Full Code Here

      ComponentRegistry componentRegistry=(ComponentRegistry)o;
      if (observableRegistry!=null){
        observableRegistry.deleteObserver(this);
      }
      if (componentRegistry instanceof JCRComponentRegistry){
        AiravataRegistry registry = ((JCRComponentRegistry)componentRegistry).getRegistry();
        if (registry!=null && registry instanceof Observable){
          (observableRegistry=(Observable)registry).addObserver(this);
        }
      }
      load(componentRegistry);
View Full Code Here

    }

    private void deleteApplicationDescription(JTree tree) throws Exception {
        if (askQuestion("Application descriptions",
                "Are you sure that you want to remove all application descriptions in this registry?")) {
            AiravataRegistry registry = getRegistry();
            List<ApplicationDeploymentDescriptionWrap> descriptions = getApplicationDeploymentDescriptions()
                    .getDescriptions();
            for (ApplicationDeploymentDescriptionWrap descriptionWrap : descriptions) {
                registry.deleteDeploymentDescription(descriptionWrap.getService(), descriptionWrap.getHost(),
                        descriptionWrap.getDescription().getType().getApplicationName().getStringValue());
            }
            refresh();
            reloadTreeNode(tree, this);
        }
View Full Code Here

     *
     * @return
     * @throws RepositoryException
     */
    public Map<QName, Node> getOGCEWorkflowTemplateList() throws RegistryException {
        AiravataRegistry registry = connectToRegistry();
        return registry.getWorkflows(this.engine.getConfiguration().getRegistryUserName());
    }
View Full Code Here

     * @throws ComponentException
     * @throws Exception
     */
    public Workflow getOGCEWorkflow(QName workflowTemplateId) throws RepositoryException, GraphException,
            ComponentException, Exception {
        AiravataRegistry registry = connectToRegistry();
        Node node = registry.getWorkflow(workflowTemplateId, this.engine.getConfiguration().getRegistryUserName());
        XmlElement xwf = XMLUtil.stringToXmlElement(node.getProperty("workflow").getString());
        Workflow workflow = new Workflow(xwf);
        return workflow;
    }
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.