airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hes...@apache.org
Subject svn commit: r1404763 - /airavata/sandbox/client-api-demo/src/main/webapp/x_app_descriptor_save_jason.html
Date Thu, 01 Nov 2012 20:55:22 GMT
Author: heshan
Date: Thu Nov  1 20:55:21 2012
New Revision: 1404763

URL: http://svn.apache.org/viewvc?rev=1404763&view=rev
Log:
saving app descriptor.

Modified:
    airavata/sandbox/client-api-demo/src/main/webapp/x_app_descriptor_save_jason.html

Modified: airavata/sandbox/client-api-demo/src/main/webapp/x_app_descriptor_save_jason.html
URL: http://svn.apache.org/viewvc/airavata/sandbox/client-api-demo/src/main/webapp/x_app_descriptor_save_jason.html?rev=1404763&r1=1404762&r2=1404763&view=diff
==============================================================================
--- airavata/sandbox/client-api-demo/src/main/webapp/x_app_descriptor_save_jason.html (original)
+++ airavata/sandbox/client-api-demo/src/main/webapp/x_app_descriptor_save_jason.html Thu
Nov  1 20:55:21 2012
@@ -98,18 +98,17 @@ Output Type         *: <input type="text
             var outputType = $("#outputType1").val();
 
 
-            jsonRequest["applicationName"] = appName;
+            jsonRequest["name"] = appName;
+            jsonRequest["executablePath"] = exeuctableLocation;
+            jsonRequest["workingDir"] = scratchWorkingDirectory;
             jsonRequest["cpuCount"] = cpuCount;
             jsonRequest["hostdescName"] = hostName;
             jsonRequest["maxMemory"] = maxMemory;
-            jsonRequest["maxWallTime"] = ""; //TODO
-            jsonRequest["minMemory"] = ""; //TODO
+            jsonRequest["maxWallTime"] = "10"; //TODO
+            jsonRequest["minMemory"] = "4"; //TODO
             jsonRequest["nodeCount"] = nodeCount;
-            jsonRequest["processorsPerNode"] = ""; //TODO
+            jsonRequest["processorsPerNode"] = "3"; //TODO
 
-//            var outArray = ["4" , "5" , "6"];
-            console.log("outputCount : " + outputCount);
-            console.log("inputCount : " + inputCount);
             var inArray = [];
             for(var j=1; j<inputCount+1; j++) {
                 var input = {};
@@ -123,9 +122,6 @@ Output Type         *: <input type="text
                 console.log(JSON.stringify(input));
             }
 
-            console.log("loop one done");
-
-//            var outArray = ["1" , "2" , "3"];
             var outArray = new Array();
             for(j=1; j<outputCount+1; j++) {
                 var output = {};
@@ -142,9 +138,6 @@ Output Type         *: <input type="text
             console.log("loop two done");
 
             var serviceDesc = {};
-
-
-
             /*console.log("setting params to servicedesc");
 
             serviceDesc["inputParams"] = inArray;
@@ -170,9 +163,9 @@ Output Type         *: <input type="text
                 dataType: "json",
                 contentType: "application/json;charset=utf-8",
                 url: "http://localhost:7080/airavata-registry-rest-services/registry/api/applicationdescriptor/build/save",
-//                url: "http://localhost:7080/airavata-registry-rest-services/registry/api/applicationdescriptor/build/save/test",
-                data: JSON.stringify({"name":"abc3", "hostdescName":"LocalHost", "executablePath":"cccc",
"workingDir":"dddd" })
-//                data: jsonRequest
+                data: JSON.stringify(jsonRequest)
+//                data: JSON.stringify({"name":"abc3", "hostdescName":"LocalHost", "executablePath":"cccc",
"workingDir":"dddd" })
+
             }).done(function( msg ) {
                         alert( "Data Saved: " + msg );
                     });



Mime
View raw message