Author: samindaw
Date: Wed Oct 9 17:56:32 2013
New Revision: 1530734
URL: http://svn.apache.org/r1530734
Log:
updating the class to support ssh with hpcresource to have hpcapplication
Modified:
airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/dialogs/descriptors/HostDeploymentDialog.java
Modified:
airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/dialogs/descriptors/HostDeploymentDialog.java
URL:
http://svn.apache.org/viewvc/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/dialogs/descriptors/HostDeploymentDialog.java?rev=1530734&r1=1530733&r2=1530734&view=diff
==============================================================================
---
airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/dialogs/descriptors/HostDeploymentDialog.java
(original)
+++
airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/dialogs/descriptors/HostDeploymentDialog.java
Wed Oct 9 17:56:32 2013
@@ -53,7 +53,9 @@ import org.apache.airavata.commons.gfac.
//import org.apache.airavata.registry.api.AiravataRegistry2;
import org.apache.airavata.schemas.gfac.ApplicationDeploymentDescriptionType;
import org.apache.airavata.schemas.gfac.GlobusHostType;
+import org.apache.airavata.schemas.gfac.GsisshHostType;
import org.apache.airavata.schemas.gfac.HpcApplicationDeploymentType;
+import org.apache.airavata.schemas.gfac.SSHHostType;
import org.apache.airavata.xbaya.ui.menues.MenuIcons;
import org.apache.airavata.xbaya.ui.widgets.GridPanel;
import org.apache.airavata.xbaya.ui.widgets.XBayaLabel;
@@ -502,10 +504,14 @@ public class HostDeploymentDialog extend
hostDescription =
registry.getApplicationManager().getHostDescription(hostName);
if (hostDescription.getType() instanceof GlobusHostType) {
getShellApplicationDescription().getType().changeType(HpcApplicationDeploymentType.type);
+ }else if (hostDescription.getType() instanceof GsisshHostType)
{
+
getShellApplicationDescription().getType().changeType(HpcApplicationDeploymentType.type);
+ }else if (hostDescription.getType() instanceof SSHHostType &&
((SSHHostType)hostDescription.getType()).getHpcResource()) {
+
getShellApplicationDescription().getType().changeType(HpcApplicationDeploymentType.type);
} else {
getShellApplicationDescription().getType().changeType(ApplicationDeploymentDescriptionType.type);
}
- btnHostAdvanceOptions.setVisible(hostDescription.getType()
instanceof GlobusHostType);
+
btnHostAdvanceOptions.setVisible(getShellApplicationDescription().getType()
instanceof HpcApplicationDeploymentType);
String hostAddress =
hostDescription.getType().getHostAddress();
boolean isLocal = isLocalAddress(hostAddress);
btnExecBrowse.setVisible(isLocal);