Package org.apache.airavata.schemas.gfac

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


    try {
      HostDescription hostDescriptor = getRegistry().getHostDescriptor(computeResourceId);
      hostDescriptor.getType().changeType(GsisshHostType.type);
      GsisshHostType s = (GsisshHostType)hostDescriptor.getType();
      s.setInstalledPath(jobSubmission.getInstalledPath());
      ExportProperties exports = s.addNewExports();
      if (jobSubmission.getExportsSize()>0) {
        for (String export : jobSubmission.getExports()) {
          exports.addNewName().setValue(export);
        }
      }
      s.setExports(exports);
      s.setJobManager(jobSubmission.getResourceJobManager().toString());
      s.setMonitorMode(jobSubmission.getMonitorMode());
View Full Code Here


            ((SSHHostType)hostDescription.getType()).addNewFileEndPointPrefix().setStringValue(prefix);
      }
            ((SSHHostType)hostDescription.getType()).setHpcResource(hpcResourceCheckBoxField.isSelected());
        }else if (host instanceof GsisshHostType){
          String[] exports = StringUtil.getElementsFromString(exportsTextField.getText());
          ExportProperties exportsElement = ((GsisshHostType)hostDescription.getType()).addNewExports();
          for (String export : exports) {
            String[] nameVal = StringUtil.getElementsFromString(export,"=",StringUtil.QUOTE);
            if (nameVal.length>0){
                Name name = exportsElement.addNewName();
              name.setStringValue(nameVal[0]);
              if (nameVal.length>1){
                name.setValue(nameVal[1]);
              }
            }
View Full Code Here

    }else if (t instanceof Ec2HostType){
      cmbResourceProtocol.setSelectedItem(REMOTE_PROTOCOL_STR_AMAZON_EC2);
    }else if (t instanceof GsisshHostType){
      cmbResourceProtocol.setSelectedItem(REMOTE_PROTOCOL_GSI_SSH);
      List<String> arr=new ArrayList<String>();
      ExportProperties exports = ((GsisshHostType) t).getExports();
      if (exports!=null) {
        Name[] nameArray = exports.getNameArray();
        for (Name name : nameArray) {
          arr.add(name.getStringValue() + "="
              + StringUtil.quoteString(name.getValue(), "="));
        }
      }
View Full Code Here

TOP

Related Classes of org.apache.airavata.schemas.gfac.ExportProperties

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.