Package org.apache.airavata.model.appcatalog

Examples of org.apache.airavata.model.appcatalog.SSHJobSubmission$SSHJobSubmissionStandardScheme


    if (computeResourceDescription.getJobSubmissionProtocolsSize()>0){
      String jobSubmissionProtocolDataId=computeResourceDescription.getJobSubmissionProtocols().keySet().iterator().next();
      JobSubmissionProtocol jobSubmissionProtocol = computeResourceDescription.getJobSubmissionProtocols().get(jobSubmissionProtocolDataId);
      switch(jobSubmissionProtocol){
      case SSH:
        SSHJobSubmission sshJobSubmissionProtocol = getSSHJobSubmissionProtocol(jobSubmissionProtocolDataId);
        host.getType().changeType(SSHHostType.type);
        //TODO fill the data
        break;
      case GRAM:
        GlobusJobSubmission globusJobSubmissionProtocol = getGlobusJobSubmissionProtocol(jobSubmissionProtocolDataId);
View Full Code Here


      String sshJobSubmissionProtocolResourceId)
      throws InvalidRequestException, AiravataClientException,
      AiravataSystemException, TException {
    try {
      HostDescription hostDescriptor = getRegistry().getHostDescriptor(sshJobSubmissionProtocolResourceId);
      SSHJobSubmission d = new SSHJobSubmission();
      d.setJobSubmissionDataID(sshJobSubmissionProtocolResourceId);
      if (hostDescriptor.getType() instanceof SSHHostType){
        d.setSshPort(22);
      } else {
        throw new Exception("Saved job protocol is not SSH");
      }
      return d;
    } catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.apache.airavata.model.appcatalog.SSHJobSubmission$SSHJobSubmissionStandardScheme

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.