airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From samin...@apache.org
Subject git commit: setting isempty parameter
Date Mon, 07 Jul 2014 20:10:51 GMT
Repository: airavata
Updated Branches:
  refs/heads/master 0b8817370 -> d76cf9e34


setting isempty parameter


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/d76cf9e3
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/d76cf9e3
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/d76cf9e3

Branch: refs/heads/master
Commit: d76cf9e34dfc1eebd51de10a202f85b2a7c4bc72
Parents: 0b88173
Author: Saminda Wijeratne <samindaw@gmail.com>
Authored: Mon Jul 7 16:10:38 2014 -0400
Committer: Saminda Wijeratne <samindaw@gmail.com>
Committed: Mon Jul 7 16:10:38 2014 -0400

----------------------------------------------------------------------
 .../org/apache/airavata/client/tools/DocumentCreatorNew.java   | 6 ++++++
 .../org/apache/airavata/client/tools/DocumentCreatorUtils.java | 4 ++++
 2 files changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/d76cf9e3/modules/airavata-client/src/main/java/org/apache/airavata/client/tools/DocumentCreatorNew.java
----------------------------------------------------------------------
diff --git a/modules/airavata-client/src/main/java/org/apache/airavata/client/tools/DocumentCreatorNew.java
b/modules/airavata-client/src/main/java/org/apache/airavata/client/tools/DocumentCreatorNew.java
index 5cc6db7..6452648 100644
--- a/modules/airavata-client/src/main/java/org/apache/airavata/client/tools/DocumentCreatorNew.java
+++ b/modules/airavata-client/src/main/java/org/apache/airavata/client/tools/DocumentCreatorNew.java
@@ -81,6 +81,7 @@ public class DocumentCreatorNew {
 		
 		//Define application interfaces
     	ApplicationInterfaceDescription application = new ApplicationInterfaceDescription();
+    	application.setIsEmpty(false);
     	application.setApplicationName("SimpleEcho0");
 		application.addToApplicationModules(module.getAppModuleId());
     	application.addToApplicationInputs(DocumentCreatorUtils.createAppInput("echo_input","echo_input","Echo
Input Data",null,DataType.STRING));
@@ -133,6 +134,7 @@ public class DocumentCreatorNew {
         client.registerApplicationDeployment(deployment);
         
         ApplicationInterfaceDescription application = new ApplicationInterfaceDescription();
+    	application.setIsEmpty(false);
         application.setApplicationName("SSHEcho1");
         application.addToApplicationModules(module.getAppModuleId());
         application.addToApplicationInputs(DocumentCreatorUtils.createAppInput("echo_input","echo_input",
null, null, DataType.STRING));
@@ -257,6 +259,7 @@ public class DocumentCreatorNew {
         module1.setAppModuleId(client.registerApplicationModule(module1));
         
     	ApplicationInterfaceDescription application = new ApplicationInterfaceDescription();
+    	application.setIsEmpty(false);
         application.setApplicationName("SimpleEcho2");
         application.addToApplicationModules(module1.getAppModuleId());
         application.addToApplicationInputs(DocumentCreatorUtils.createAppInput("echo_input",
"echo_input", "echo_input", null, DataType.STRING));
@@ -273,6 +276,7 @@ public class DocumentCreatorNew {
         ApplicationModule module2 = DocumentCreatorUtils.createApplicationModule("wrf", "1.0.0",
null);
         module2.setAppModuleId(client.registerApplicationModule(module2));
         ApplicationInterfaceDescription application2 = new ApplicationInterfaceDescription();
+    	application2.setIsEmpty(false);
         application2.setApplicationName("WRF");
         application2.addToApplicationModules(module2.getAppModuleId());
         application2.addToApplicationInputs(DocumentCreatorUtils.createAppInput("WRF_Namelist",
"WRF_Namelist", null, null, DataType.URI));
@@ -309,6 +313,7 @@ public class DocumentCreatorNew {
     	module.setAppModuleId(client.registerApplicationModule(module));
     	
     	ApplicationInterfaceDescription application = new ApplicationInterfaceDescription();
+    	application.setIsEmpty(false);
     	application.setApplicationName("SimpleEcho3");
     	application.addToApplicationModules(module.getAppModuleId());
     	application.addToApplicationInputs(DocumentCreatorUtils.createAppInput("echo_input",
"echo_input", null, null, DataType.STRING));
@@ -344,6 +349,7 @@ public class DocumentCreatorNew {
         module.setAppModuleId(client.registerApplicationModule(module));
         
         ApplicationInterfaceDescription application = new ApplicationInterfaceDescription();
+    	application.setIsEmpty(false);
         application.setApplicationName("SimpleEcho4");
         application.addToApplicationModules(module.getAppModuleId());
     	application.addToApplicationInputs(DocumentCreatorUtils.createAppInput("echo_input",
"echo_input", null, null, DataType.STRING));

http://git-wip-us.apache.org/repos/asf/airavata/blob/d76cf9e3/modules/airavata-client/src/main/java/org/apache/airavata/client/tools/DocumentCreatorUtils.java
----------------------------------------------------------------------
diff --git a/modules/airavata-client/src/main/java/org/apache/airavata/client/tools/DocumentCreatorUtils.java
b/modules/airavata-client/src/main/java/org/apache/airavata/client/tools/DocumentCreatorUtils.java
index 8738f59..1ee3160 100644
--- a/modules/airavata-client/src/main/java/org/apache/airavata/client/tools/DocumentCreatorUtils.java
+++ b/modules/airavata-client/src/main/java/org/apache/airavata/client/tools/DocumentCreatorUtils.java
@@ -61,6 +61,7 @@ public class DocumentCreatorUtils {
 			String computeResourceId, String appModuleId,
 			String executablePath, ApplicationParallelismType parallelism, String appDeploymentDescription)
{
 		ApplicationDeploymentDescription deployment = new ApplicationDeploymentDescription();
+		deployment.setIsEmpty(false);
 		deployment.setAppDeploymentDescription(appDeploymentDescription);
 		deployment.setAppModuleId(appModuleId);
 		deployment.setComputeHostId(computeResourceId);
@@ -72,6 +73,7 @@ public class DocumentCreatorUtils {
 	public static ApplicationModule createApplicationModule(String appModuleName,
 			String appModuleVersion, String appModuleDescription) {
 		ApplicationModule module = new ApplicationModule();
+		module.setIsEmpty(false);
 		module.setAppModuleDescription(appModuleDescription);
 		module.setAppModuleName(appModuleName);
 		module.setAppModuleVersion(appModuleVersion);
@@ -122,6 +124,7 @@ public class DocumentCreatorUtils {
 
 	public static InputDataObjectType createAppInput (String inputName, String argumentName,
String description, String value, org.apache.airavata.model.appcatalog.appinterface.DataType
type ){
         InputDataObjectType input = new InputDataObjectType();
+        input.setIsEmpty(false);
         if (inputName!=null) {
 			input.setName(inputName);
 		}
@@ -142,6 +145,7 @@ public class DocumentCreatorUtils {
 
     public static OutputDataObjectType createAppOutput (String inputName, String value, org.apache.airavata.model.appcatalog.appinterface.DataType
type ){
         OutputDataObjectType outputDataObjectType = new OutputDataObjectType();
+        outputDataObjectType.setIsEmpty(false);
         if (inputName!=null) {
 			outputDataObjectType.setName(inputName);
 		}


Mime
View raw message