| /* |
| * |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| * |
| */ |
| |
| package org.apache.airavata.model.util; |
| |
| import org.apache.airavata.model.appcatalog.computeresource.*; |
| |
| import java.util.List; |
| |
| public class ComputeResourceUtil { |
| // public static ComputeResourceDescription createComputeResource (String resourceName, |
| // String resourceDesc, |
| // String preferedSubmissionProtocol){ |
| // ComputeResourceDescription computeResource = new ComputeResourceDescription(); |
| // computeResource.setHostName(resourceName); |
| // computeResource.setResourceDescription(resourceDesc); |
| // computeResource.setPreferredJobSubmissionProtocol(preferedSubmissionProtocol); |
| // return computeResource; |
| // } |
| // |
| // public static SSHJobSubmission createSSHJobSubmission (int sshPort, |
| // ResourceJobManager jobManager){ |
| // SSHJobSubmission jobSubmission = new SSHJobSubmission(); |
| // jobSubmission.setResourceJobManager(jobManager); |
| // jobSubmission.setSshPort(sshPort); |
| // return jobSubmission; |
| // } |
| // |
| // public static GSISSHJobSubmission createGSISSHJobSubmission (int sshPort, |
| // ResourceJobManager jobManager, |
| // String installedPath, |
| // String monitorMode){ |
| // GSISSHJobSubmission jobSubmission = new GSISSHJobSubmission(); |
| // jobSubmission.setResourceJobManager(jobManager); |
| // jobSubmission.setSshPort(sshPort); |
| // jobSubmission.setInstalledPath(installedPath); |
| // jobSubmission.setMonitorMode(monitorMode); |
| // return jobSubmission; |
| // } |
| // |
| // public static GlobusJobSubmission createGlobusJobSubmission (SecurityProtocol securityProtocol, |
| // ResourceJobManager resourceJobManager, |
| // List<String> globusEPs){ |
| // GlobusJobSubmission jobSubmission = new GlobusJobSubmission(); |
| // jobSubmission.setResourceJobManager(resourceJobManager); |
| // jobSubmission.setSecurityProtocol(securityProtocol); |
| // jobSubmission.setGlobusGateKeeperEndPoint(globusEPs); |
| // return jobSubmission; |
| // } |
| // |
| // public static SCPDataMovement createSCPDataMovement (SecurityProtocol securityProtocol, |
| // int sshPort){ |
| // SCPDataMovement dataMovement = new SCPDataMovement(); |
| // dataMovement.setSecurityProtocol(securityProtocol); |
| // dataMovement.setSshPort(sshPort); |
| // return dataMovement; |
| // } |
| // |
| // public static GridFTPDataMovement createGridFTPDataMovement (SecurityProtocol securityProtocol, |
| // List<String> gridFTPEPs){ |
| // GridFTPDataMovement dataMovement = new GridFTPDataMovement(); |
| // dataMovement.setSecurityProtocol(securityProtocol); |
| // dataMovement.setGridFTPEndPoint(gridFTPEPs); |
| // return dataMovement; |
| // } |
| } |