Examples of NameValuePairType


Examples of org.apache.airavata.client.tools.NameValuePairType

        NodeSettings n = new NodeSettingsImpl(nodeSettings.getNodeId());
        n.setServiceId(nodeSettings.getServiceId());
        List<NameValuePairType> nameValuePairTypes = new ArrayList<NameValuePairType>();
        List<org.apache.airavata.experiment.execution.NameValuePairType> nameValuePairList = nodeSettings.getNameValuePairList();
        for (org.apache.airavata.experiment.execution.NameValuePairType np : nameValuePairList) {
            NameValuePairType nameValuePairObject = getNameValuePairObject(np);
            nameValuePairTypes.add(nameValuePairObject);
        }
        n.setNameValuePair(nameValuePairTypes);
        return (NodeSettingsImpl)n;
View Full Code Here

Examples of org.apache.airavata.client.tools.NameValuePairType

        return (NodeSettingsImpl)n;

    }

    public static NameValuePairType getNameValuePairObject(org.apache.airavata.experiment.execution.NameValuePairType nameValuePairType){
        NameValuePairType nameValuePair = new NameValuePairType();
        nameValuePair.setName(nameValuePairType.getName());
        nameValuePair.setValue(nameValuePairType.getValue());
        nameValuePair.setDescription(nameValuePairType.getDescription());
        return nameValuePair;
    }
View Full Code Here

Examples of org.apache.airavata.schemas.gfac.NameValuePairType

      }
      for (int i = 0; i < defaultTableModel.getRowCount(); i++) {
            String parameterName = (String) defaultTableModel.getValueAt(i, 0);
            String paramValue = (String) defaultTableModel.getValueAt(i, 1);
            if (parameterName != null && !parameterName.trim().equals("")) {
              NameValuePairType envType = getShellApplicationDescriptionType().addNewApplicationEnvironment();
            envType.setName(parameterName);
                envType.setValue(paramValue);
            }
        }
    }
View Full Code Here

Examples of org.apache.airavata.schemas.gfac.NameValuePairType

      }
      for (int i = 0; i < defaultTableModel.getRowCount(); i++) {
            String parameterName = (String) defaultTableModel.getValueAt(i, 0);
            String paramValue = (String) defaultTableModel.getValueAt(i, 1);
            if (parameterName != null && !parameterName.trim().equals("")) {
              NameValuePairType envType = getShellApplicationDescriptionType().addNewApplicationEnvironment();
            envType.setName(parameterName);
                envType.setValue(paramValue);
            }
        }
    }
View Full Code Here

Examples of org.apache.airavata.schemas.gfac.NameValuePairType

      }
      for (int i = 0; i < defaultTableModel.getRowCount(); i++) {
            String parameterName = (String) defaultTableModel.getValueAt(i, 0);
            String paramValue = (String) defaultTableModel.getValueAt(i, 1);
            if (parameterName != null && !parameterName.trim().equals("")) {
              NameValuePairType envType = getShellApplicationDescriptionType().addNewApplicationEnvironment();
            envType.setName(parameterName);
                envType.setValue(paramValue);
            }
        }
    }
View Full Code Here

Examples of org.apache.airavata.schemas.gfac.NameValuePairType

      }
      for (int i = 0; i < defaultTableModel.getRowCount(); i++) {
            String parameterName = (String) defaultTableModel.getValueAt(i, 0);
            String paramValue = (String) defaultTableModel.getValueAt(i, 1);
            if (parameterName != null && !parameterName.trim().equals("")) {
              NameValuePairType envType = getShellApplicationDescriptionType().addNewApplicationEnvironment();
            envType.setName(parameterName);
                envType.setValue(paramValue);
            }
        }
      int a=10;
    }
View Full Code Here

Examples of org.apache.airavata.schemas.gfac.NameValuePairType

        HashMap<String,String> environmentVariables = applicationDescriptor.getEnvironmentVariables();
        if (environmentVariables != null && !environmentVariables.isEmpty()){
            NameValuePairType[] appEnviVariablesArray = new NameValuePairType[environmentVariables.size()];
            for(String key : environmentVariables.keySet()) {
                int i = 0;
                NameValuePairType nameValuePairType = applicationDescription.getType().addNewApplicationEnvironment();
                nameValuePairType.setName(key);
                nameValuePairType.setValue(environmentVariables.get(key));
                appEnviVariablesArray[i] = nameValuePairType;
                i++;
            }
            applicationDescription.getType().setApplicationEnvironmentArray(appEnviVariablesArray);
        }

        //set advanced options according app desc type
        if(applicationDescriptor.getApplicationDescType() != null && !applicationDescriptor.getApplicationDescType().isEmpty()){
            if (applicationDescriptor.getApplicationDescType().equals(ApplicationDescriptorTypes.HPC_APP_DEP_DESC_TYPE)){
                ApplicationDescription appDesc = new ApplicationDescription(HpcApplicationDeploymentType.type);
                appDesc.getType().setApplicationName(name);
                appDesc.getType().setExecutableLocation(applicationDescriptor.getExecutablePath());
                appDesc.getType().setScratchWorkingDirectory(applicationDescriptor.getWorkingDir());

                if (applicationDescriptor.getInputDir() != null){
                    appDesc.getType().setInputDataDirectory(applicationDescriptor.getInputDir());
                }
                if (applicationDescriptor.getOutputDir() != null){
                    appDesc.getType().setOutputDataDirectory(applicationDescriptor.getOutputDir());
                }
                if (applicationDescriptor.getStdIn() != null){
                    appDesc.getType().setStandardInput(applicationDescriptor.getStdIn());
                }
                if (applicationDescriptor.getStdOut() != null){
                    appDesc.getType().setStandardOutput(applicationDescriptor.getStdOut());
                }
                if (applicationDescriptor.getStdError() != null){
                    appDesc.getType().setStandardError(applicationDescriptor.getStdError());
                }
                if (applicationDescriptor.getStaticWorkigDir() != null){
                    appDesc.getType().setStaticWorkingDirectory(applicationDescriptor.getStaticWorkigDir());
                }

                HashMap<String,String> envVariables = applicationDescriptor.getEnvironmentVariables();
                if (envVariables != null && !envVariables.isEmpty()){
                    NameValuePairType[] appEnviVariablesArray = new NameValuePairType[envVariables.size()];
                    for(String key : envVariables.keySet()) {
                        int i = 0;
                        NameValuePairType nameValuePairType = applicationDescription.getType().addNewApplicationEnvironment();
                        nameValuePairType.setName(key);
                        nameValuePairType.setValue(envVariables.get(key));
                        appEnviVariablesArray[i] = nameValuePairType;
                        i++;
                    }
                    appDesc.getType().setApplicationEnvironmentArray(appEnviVariablesArray);
                }
View Full Code Here

Examples of org.apache.airavata.schemas.wec.NameValuePairType

   
         if (this.workflowSchedulingContext == null) {
               this.workflowSchedulingContext = WorkflowSchedulingContextDocument.WorkflowSchedulingContext.Factory
                       .newInstance();
           }
         NameValuePairType  nameValuePair = workflowSchedulingContext.addNewNameValuePair();
         if(workflowNodeId != null){
           nameValuePair.setWorkflowNodeId(workflowNodeId);
         }
         if(name != null && value != null){
           nameValuePair.setName(name);
           nameValuePair.setValue(value);
         }
         if(description != null){
           nameValuePair.setDescription(description);
         }
         return this;
    }
View Full Code Here

Examples of org.ogce.schemas.gfac.documents.NameValuePairType

        if (index <= 0) {
          throw new GFacSchemaException("Illegal Name value Pairs "
              + host.getHostEnv() + " at parsing " + nameVal);
        }
        String name = nameVal.substring(0, index);
        NameValuePairType nmPair = envMap.get(name);
        if (nmPair == null) {
          nmPair = hostConf.addNewHostEnv();
        }
        nmPair.setName(name);
        nmPair.setValue(nameVal.substring(index + 1));
      }
    }
    if (host.isSshEnabled()) {
      hostDesc.getHostConfiguration().setSshEnabled(true);
    }
View Full Code Here

Examples of org.ogce.schemas.gfac.documents.NameValuePairType

            throw new GfacException("Illegal Name value Pairs "
                + host.getHostEnv() + " at parsing " + nameVal,
                FaultCode.InvaliedLocalArgumnet);
          }
          String name = nameVal.substring(0, index);
          NameValuePairType nmPair = envMap.get(name);
          if (nmPair == null) {
            nmPair = hostConf.addNewHostEnv();
          }
          nmPair.setName(name);
          nmPair.setValue(nameVal.substring(index + 1));
        }
      }
      if(host.isSshEnabled()){
      hostDesc.getHostConfiguration().setSshEnabled(true);
      }
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.