Examples of GSISSHJobSubmission


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

        GlobusJobSubmission globusJobSubmissionProtocol = getGlobusJobSubmissionProtocol(jobSubmissionProtocolDataId);
        host.getType().changeType(GlobusHostType.type);
        //TODO fill the data
        break;
      case GSISSH:
        GSISSHJobSubmission gsisshJobSubmissionProtocol = getGSISSHJobSubmissionProtocol(jobSubmissionProtocolDataId);
        host.getType().changeType(GsisshHostType.type);
        break;
        //TODO fill the data
      default:
        break;
View Full Code Here

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

      String gsisshJobSubmissionProtocolResourceId)
      throws InvalidRequestException, AiravataClientException,
      AiravataSystemException, TException {
    try {
      HostDescription hostDescriptor = getRegistry().getHostDescriptor(gsisshJobSubmissionProtocolResourceId);
      GSISSHJobSubmission d = new GSISSHJobSubmission();
      d.setJobSubmissionDataID(gsisshJobSubmissionProtocolResourceId);
      if (hostDescriptor.getType() instanceof GsisshHostType){
        GsisshHostType gsisshHostType = (GsisshHostType)hostDescriptor.getType();
        d.setInstalledPath(gsisshHostType.getInstalledPath());
        d.setMonitorMode(gsisshHostType.getMonitorMode());
        d.setPostJobCommands(Arrays.asList(gsisshHostType.getPostJobCommandsArray()));
        d.setPreJobCommands(Arrays.asList(gsisshHostType.getPreJobCommandsArray()));
        d.setSshPort(gsisshHostType.getPort());
        d.setResourceJobManager(getResourceJobManager(gsisshHostType.getJobManager()));
      } else {
        throw new Exception("Saved job protocol is not GSISSH");
      }
      return d;
    } 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.