Examples of ApplicationDeployment


Examples of org.apache.aiaravata.application.catalog.data.model.ApplicationDeployment

            em.close();

            em = AppCatalogJPAUtils.getEntityManager();
            em.getTransaction().begin();

            ApplicationDeployment deployment = em.find(ApplicationDeployment.class, deploymentId);
            if (existigApendPath !=  null){
                existigApendPath.setValue(value);
                existigApendPath.setApplicationDeployment(deployment);
                em.merge(existigApendPath);
            }else {
View Full Code Here

Examples of org.apache.aiaravata.application.catalog.data.model.ApplicationDeployment

            } else {
                moduleLoadCmd = existingModuleLoadCmd;
            }
            moduleLoadCmd.setCmd(getCmd());
            moduleLoadCmd.setAppDeploymentId(getAppDeploymentId());
            ApplicationDeployment applicationDeployment = em.find(ApplicationDeployment.class, getAppDeploymentId());
            moduleLoadCmd.setApplicationDeployment(applicationDeployment);
            if (existingModuleLoadCmd == null) {
                em.persist(moduleLoadCmd);
            } else {
                em.merge(moduleLoadCmd);
View Full Code Here

Examples of org.apache.aiaravata.application.catalog.data.model.ApplicationDeployment

            em.close();

            em = AppCatalogJPAUtils.getEntityManager();
            em.getTransaction().begin();

            ApplicationDeployment deployment = em.find(ApplicationDeployment.class, deploymentId);
            if (existigAppEnv !=  null){
                existigAppEnv.setValue(value);
                existigAppEnv.setApplicationDeployment(deployment);
                em.merge(existigAppEnv);
            }else {
View Full Code Here

Examples of org.apache.airavata.model.appcatalog.ApplicationDeployment

      ApplicationInterface applicationInterface = new ApplicationInterface();
      applicationInterface.setApplicationInterfaceId(applicationInterfaceId);
      applicationInterface.setApplicationInterfaceData(serviceDescriptor.toXML());
      Map<String, ApplicationDescription> applicationDescriptors = getRegistry().getApplicationDescriptors(applicationInterfaceId);
      for (String hostId : applicationDescriptors.keySet()) {
        ApplicationDeployment applicationDeployment = new ApplicationDeployment();
        applicationDeployment.setComputeResourceDescription(getComputeResourceDescription(hostId));
        ApplicationDescriptor applicationDescriptor = new ApplicationDescriptor();
        applicationDescriptor.setApplicationDescriptorId(applicationDescriptors.get(hostId).getType().getApplicationName().getStringValue());
        applicationDescriptor.setApplicationDescriptorData(applicationDescriptors.get(hostId).toXML());
        applicationDeployment.setApplicationDescriptor(applicationDescriptor);
        applicationInterface.addToApplicationDeployments(applicationDeployment);
      }
      return applicationInterface;
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here

Examples of org.apache.airavata.model.appcatalog.ApplicationDeployment

      AiravataClientException, AiravataSystemException, TException {
    try {
      Map<String, ApplicationDescription> applicationDescriptors = getRegistry().getApplicationDescriptors(applicationInterfaceId);
      for (String hostId : applicationDescriptors.keySet()) {
        if (applicationDescriptors.get(hostId).getType().getApplicationName().getStringValue().equals(applicationDeploymentId)){
          ApplicationDeployment applicationDeployment = new ApplicationDeployment();
          applicationDeployment.setDeploymentId(applicationDescriptors.get(hostId).getType().getApplicationName().getStringValue());
          ApplicationDescriptor applicationDescriptor=new ApplicationDescriptor();
          applicationDescriptor.setApplicationDescriptorId(applicationDescriptors.get(hostId).getType().getApplicationName().getStringValue());
          applicationDescriptor.setApplicationDescriptorData(applicationDescriptors.get(hostId).toXML());
          applicationDeployment.setApplicationDescriptor(applicationDescriptor);
          applicationDeployment.setComputeResourceDescription(getComputeResourceDescription(hostId));
          return applicationDeployment;
        }
      }
      return null;
    } catch (Exception 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.