airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From samin...@apache.org
Subject [05/50] [abbrv] git commit: removed old directory client samples
Date Tue, 22 Jul 2014 15:05:30 GMT
removed old directory client samples


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

Branch: refs/heads/workflow-support
Commit: c9af2836772da59ce8fe78fba56a4c46fd126118
Parents: f0486a2
Author: ixxi-2013 <nadeem.cs.iit@gmail.com>
Authored: Sat Jul 12 04:52:23 2014 +0200
Committer: ixxi-2013 <nadeem.cs.iit@gmail.com>
Committed: Sat Jul 12 04:52:23 2014 +0200

----------------------------------------------------------------------
 .../airavata-client-properties.ini              |   4 -
 .../main/resources/client samples/compile.sh    |   5 -
 .../client samples/createExperiment.cpp         | 157 -------------------
 .../resources/client samples/createProject.cpp  | 100 ------------
 .../client samples/getExperimentOutputs.cpp     | 104 ------------
 .../client samples/getExperimentStatus.cpp      | 101 ------------
 .../client samples/launchExperiment.cpp         |  99 ------------
 7 files changed, 570 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/c9af2836/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client
samples/airavata-client-properties.ini
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client
samples/airavata-client-properties.ini b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client
samples/airavata-client-properties.ini
deleted file mode 100644
index b0335fd..0000000
--- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client samples/airavata-client-properties.ini

+++ /dev/null
@@ -1,4 +0,0 @@
-[airavata]
-AIRAVATA_SERVER = "localhost"
-AIRAVATA_PORT = 9930
-AIRAVATA_TIMEOUT = 5000

http://git-wip-us.apache.org/repos/asf/airavata/blob/c9af2836/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client
samples/compile.sh
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client
samples/compile.sh b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client
samples/compile.sh
deleted file mode 100755
index 5d3bf8f..0000000
--- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client samples/compile.sh

+++ /dev/null
@@ -1,5 +0,0 @@
-g++ -Wall -I/home/ixxi-2013/Desktop/airavata-trunk/airavata/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/
-L/usr/local/lib -w -Wno-write-strings   -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H  `pkg-config
--cflags glib-2.0` createProject.cpp `pkg-config --libs glib-2.0` -lthrift -o createProject
-g++ -Wall -I/home/ixxi-2013/Desktop/airavata-trunk/airavata/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/
-L/usr/local/lib -w -Wno-write-strings   -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H  `pkg-config
--cflags glib-2.0` createExperiment.cpp `pkg-config --libs glib-2.0` -lthrift -o createExperiment
-g++ -Wall -I/home/ixxi-2013/Desktop/airavata-trunk/airavata/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/
-L/usr/local/lib -w -Wno-write-strings   -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H  `pkg-config
--cflags glib-2.0` launchExperiment.cpp `pkg-config --libs glib-2.0` -lthrift -o launchExperiment
-g++ -Wall -I/home/ixxi-2013/Desktop/airavata-trunk/airavata/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/
-L/usr/local/lib -w -Wno-write-strings   -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H  `pkg-config
--cflags glib-2.0` getExperimentStatus.cpp `pkg-config --libs glib-2.0` -lthrift -o getExperimentStatus
-g++ -Wall -I/home/ixxi-2013/Desktop/airavata-trunk/airavata/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/
-L/usr/local/lib -w -Wno-write-strings   -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H  `pkg-config
--cflags glib-2.0` getExperimentOutputs.cpp `pkg-config --libs glib-2.0` -lthrift -o getExperimentOutputs

http://git-wip-us.apache.org/repos/asf/airavata/blob/c9af2836/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client
samples/createExperiment.cpp
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client
samples/createExperiment.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client
samples/createExperiment.cpp
deleted file mode 100644
index 8d43ddc..0000000
--- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client samples/createExperiment.cpp

+++ /dev/null
@@ -1,157 +0,0 @@
-#include <glib.h>
-#include <iostream>
-#include <stdint.h>
-#include <sys/time.h>
-
-#define _WIN32_WINNT 0x501
-
-#include <thrift/transport/TTransport.h>
-#include <thrift/transport/TBufferTransports.cpp>
-#include <thrift/transport/TSocket.cpp>
-#include <thrift/protocol/TProtocol.h>
-#include <thrift/protocol/TBinaryProtocol.h>
-#include <thrift/protocol/TBinaryProtocol.tcc>
-#include <thrift/TApplicationException.cpp>
-#include <thrift/transport/TTransportException.cpp>
-#include <thrift/protocol/TProtocolException.h>
-#include "../lib/airavata/Airavata.h"
-#include "../lib/airavata/Airavata.cpp"
-#include "../lib/airavata/airavataDataModel_types.h"
-#include "../lib/airavata/airavataDataModel_types.cpp"
-#include "../lib/airavata/airavataErrors_types.h"
-#include "../lib/airavata/airavataErrors_types.cpp"
-#include "../lib/airavata/experimentModel_types.h"
-#include "../lib/airavata/experimentModel_types.cpp"
-#include "../lib/airavata/workspaceModel_types.h"
-#include "../lib/airavata/workspaceModel_types.cpp"
-#include "../lib/airavata/airavataAPI_types.h"
-#include "../lib/airavata/airavataAPI_types.cpp"
-#include "../lib/airavata/applicationDeploymentModel_types.h"
-#include "../lib/airavata/applicationDeploymentModel_types.cpp"
-#include "../lib/airavata/applicationInterfaceModel_types.h"
-#include "../lib/airavata/applicationInterfaceModel_types.cpp"
-#include "../lib/airavata/gatewayResourceProfileModel_types.h"
-#include "../lib/airavata/gatewayResourceProfileModel_types.cpp"
-#include "../lib/airavata/computeResourceModel_types.h"
-#include "../lib/airavata/computeResourceModel_types.cpp"
-
-
-typedef struct {
-        gchar *airavata_server;
-        gint airavata_port, airavata_timeout;
-} Settings;
-
-using namespace std;
-using namespace apache::thrift;
-using namespace apache::thrift::protocol;
-using namespace apache::thrift::transport;
-using namespace apache::airavata::api;
-using namespace apache::airavata::model::workspace::experiment;
-
-void readConfigFile(char* cfgfile, string& airavata_server, int& airavata_port, int&
airavata_timeout) {
-
-        Settings *conf;
-        GKeyFile *keyfile;
-        GKeyFileFlags flags;
-        GError *error = NULL;        
-        keyfile = g_key_file_new ();        				
-        if (!g_key_file_load_from_file (keyfile, cfgfile, flags, &error)) {
-                g_error (error->message);
-        } else {                
-                conf = g_slice_new (Settings);
-                conf->airavata_server    = g_key_file_get_string(keyfile, "airavata",
"AIRAVATA_SERVER", NULL);
-                airavata_server = conf->airavata_server;
-                conf->airavata_port      = g_key_file_get_integer(keyfile, "airavata",
"AIRAVATA_PORT", NULL);
-                airavata_port = conf->airavata_port;
-                conf->airavata_timeout  = g_key_file_get_integer(keyfile, "airavata",
"AIRAVATA_TIMEOUT", NULL);
-                airavata_timeout = conf->airavata_timeout;                
-        }				
-
-}
-
-
-int main(int argc, char **argv)
-{
-        
-        int airavata_port, airavata_timeout;
-        string airavata_server;
-				char* cfgfile;
-				cfgfile = "./airavata-client-properties.ini";
-        readConfigFile(cfgfile, airavata_server, airavata_port, airavata_timeout);				
-				airavata_server.erase(0,1);
-				airavata_server.erase(airavata_server.length()-1,1);			
-			  boost::shared_ptr<TSocket> socket(new TSocket(airavata_server, airavata_port));
-				socket->setSendTimeout(airavata_timeout);
-  			boost::shared_ptr<TTransport> transport(new TBufferedTransport(socket));	
-  			boost::shared_ptr<TProtocol> protocol(new TBinaryProtocol(transport));
-				AiravataClient airavataclient(protocol);
-				transport->open();
-				
-				if(argc !=4){
-					cout << "Usage: ./createExperiment <username> <experiment_name> <project_ID>";
-					return 0;
-				}
-				/* ComputationalResourceScheduling data for Trestles*/
-        ComputationalResourceScheduling cmRST;
-        cmRST.__set_resourceHostId("trestles.sdsc.edu");
-        cmRST.__set_computationalProjectAccount("sds128");
-        cmRST.__set_totalCPUCount(1);
-        cmRST.__set_nodeCount(1);
-        cmRST.__set_numberOfThreads(0);
-        cmRST.__set_queueName("normal");
-        cmRST.__set_wallTimeLimit(15);
-        cmRST.__set_jobStartTime(0);
-        cmRST.__set_totalPhysicalMemory(0);
-
-
-				UserConfigurationData userConfigurationData;
-        userConfigurationData.__set_airavataAutoSchedule(0);
-        userConfigurationData.__set_overrideManualScheduledParams(0);
-        userConfigurationData.__set_computationalResourceScheduling(cmRST);
-       
-				
-				/*Application ID for Trestles */
-        char* appId = "SimpleEcho2";        
-
-				 /* Experiment input and output data. */
-        DataObjectType input;
-        input.__set_key("echo_input");
-        input.__set_value("echo_output=Hello World");
-        input.__set_type(DataType::STRING);
-				std::vector<DataObjectType> exInputs;
-				exInputs.push_back(input);				
-        DataObjectType output;
-        output.__set_key("echo_output");
-        output.__set_value("");
-        output.__set_type(DataType::STRING);
-				std::vector<DataObjectType> exOutputs;
-				exOutputs.push_back(output);
-        
-        
-				char* user = argv[1];
-        char* exp_name = argv[2];
-        char* proj = argv[3];
-
-        Experiment experiment;
-        experiment.__set_projectID(proj);
-        experiment.__set_userName(user);
-        experiment.__set_name(exp_name);
-        experiment.__set_applicationId(appId);
-        experiment.__set_userConfigurationData(userConfigurationData);
-        experiment.__set_experimentInputs(exInputs);
-        experiment.__set_experimentOutputs(exOutputs);
-								
-				string _return = "";
-        airavataclient.createExperiment(_return, experiment);
-
-        if (_return!="")
-        {
-            
-            cout << "Experiment " << _return <<" created! \n    ";
-        }
-        else
-        {
-            cout << "Failed to create experiment. \n";
-        }
-				transport->close();
-}

http://git-wip-us.apache.org/repos/asf/airavata/blob/c9af2836/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client
samples/createProject.cpp
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client
samples/createProject.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client
samples/createProject.cpp
deleted file mode 100644
index b259f58..0000000
--- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client samples/createProject.cpp

+++ /dev/null
@@ -1,100 +0,0 @@
-#include <glib.h>
-#include <iostream>
-#include <stdint.h>
-#include <sys/time.h>
-
-#define _WIN32_WINNT 0x501
-
-#include <thrift/transport/TTransport.h>
-#include <thrift/transport/TBufferTransports.cpp>
-#include <thrift/transport/TSocket.cpp>
-#include <thrift/protocol/TProtocol.h>
-#include <thrift/protocol/TBinaryProtocol.h>
-#include <thrift/protocol/TBinaryProtocol.tcc>
-#include <thrift/TApplicationException.cpp>
-#include <thrift/transport/TTransportException.cpp>
-#include <thrift/protocol/TProtocolException.h>
-#include "../lib/airavata/Airavata.h"
-#include "../lib/airavata/Airavata.cpp"
-#include "../lib/airavata/airavataDataModel_types.h"
-#include "../lib/airavata/airavataDataModel_types.cpp"
-#include "../lib/airavata/airavataErrors_types.h"
-#include "../lib/airavata/airavataErrors_types.cpp"
-#include "../lib/airavata/experimentModel_types.h"
-#include "../lib/airavata/experimentModel_types.cpp"
-#include "../lib/airavata/workspaceModel_types.h"
-#include "../lib/airavata/workspaceModel_types.cpp"
-#include "../lib/airavata/airavataAPI_types.h"
-#include "../lib/airavata/airavataAPI_types.cpp"
-#include "../lib/airavata/applicationDeploymentModel_types.h"
-#include "../lib/airavata/applicationDeploymentModel_types.cpp"
-#include "../lib/airavata/applicationInterfaceModel_types.h"
-#include "../lib/airavata/applicationInterfaceModel_types.cpp"
-#include "../lib/airavata/gatewayResourceProfileModel_types.h"
-#include "../lib/airavata/gatewayResourceProfileModel_types.cpp"
-#include "../lib/airavata/computeResourceModel_types.h"
-#include "../lib/airavata/computeResourceModel_types.cpp"
-
-
-typedef struct {
-        gchar *airavata_server, *app_catalog_server;
-        gint airavata_port, app_catalog_port, airavata_timeout;
-} Settings;
-
-using namespace std;
-using namespace apache::thrift;
-using namespace apache::thrift::protocol;
-using namespace apache::thrift::transport;
-using namespace apache::airavata::api;
-
-void readConfigFile(char* cfgfile, string& airavata_server, int& airavata_port, int&
airavata_timeout) {
-
-        Settings *conf;
-        GKeyFile *keyfile;
-        GKeyFileFlags flags;
-        GError *error = NULL;        
-        keyfile = g_key_file_new ();        				
-        if (!g_key_file_load_from_file (keyfile, cfgfile, flags, &error)) {
-                g_error (error->message);
-        } else {                
-                conf = g_slice_new (Settings);
-                conf->airavata_server    = g_key_file_get_string(keyfile, "airavata",
"AIRAVATA_SERVER", NULL);
-                airavata_server = conf->airavata_server;
-                conf->airavata_port      = g_key_file_get_integer(keyfile, "airavata",
"AIRAVATA_PORT", NULL);
-                airavata_port = conf->airavata_port;
-                conf->airavata_timeout  = g_key_file_get_integer(keyfile, "airavata",
"AIRAVATA_TIMEOUT", NULL);
-                airavata_timeout = conf->airavata_timeout;                
-        }				
-
-}
-
-
-int main(int argc, char **argv)
-{
-        
-        int airavata_port, airavata_timeout;
-        string airavata_server;
-				char* cfgfile;
-				cfgfile = "./airavata-client-properties.ini";
-        readConfigFile(cfgfile, airavata_server, airavata_port, airavata_timeout);				
-				airavata_server.erase(0,1);
-				airavata_server.erase(airavata_server.length()-1,1);			
-			  boost::shared_ptr<TSocket> socket(new TSocket(airavata_server, airavata_port));
-				socket->setSendTimeout(airavata_timeout);
-  			boost::shared_ptr<TTransport> transport(new TBufferedTransport(socket));	
-  			boost::shared_ptr<TProtocol> protocol(new TBinaryProtocol(transport));
-				AiravataClient airavataclient(protocol);
-				transport->open();
-				
-				apache::airavata::model::workspace::Project project;
-				if(argc !=3){
-					cout << "Usage: ./createProject <owner> <projectName>";
-					return 0;
-				}
-				project.owner=argv[1];
-				project.name=argv[2];
-				std::string _return;
-				airavataclient.createProject(_return,project);
-				cout << _return << "\n";
-				transport->close();
-}

http://git-wip-us.apache.org/repos/asf/airavata/blob/c9af2836/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client
samples/getExperimentOutputs.cpp
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client
samples/getExperimentOutputs.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client
samples/getExperimentOutputs.cpp
deleted file mode 100644
index 9a279ec..0000000
--- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client samples/getExperimentOutputs.cpp

+++ /dev/null
@@ -1,104 +0,0 @@
-#include <glib.h>
-#include <iostream>
-#include <stdint.h>
-#include <sys/time.h>
-
-#define _WIN32_WINNT 0x501
-
-#include <thrift/transport/TTransport.h>
-#include <thrift/transport/TBufferTransports.cpp>
-#include <thrift/transport/TSocket.cpp>
-#include <thrift/protocol/TProtocol.h>
-#include <thrift/protocol/TBinaryProtocol.h>
-#include <thrift/protocol/TBinaryProtocol.tcc>
-#include <thrift/TApplicationException.cpp>
-#include <thrift/transport/TTransportException.cpp>
-#include <thrift/protocol/TProtocolException.h>
-#include "../lib/airavata/Airavata.h"
-#include "../lib/airavata/Airavata.cpp"
-#include "../lib/airavata/airavataDataModel_types.h"
-#include "../lib/airavata/airavataDataModel_types.cpp"
-#include "../lib/airavata/airavataErrors_types.h"
-#include "../lib/airavata/airavataErrors_types.cpp"
-#include "../lib/airavata/experimentModel_types.h"
-#include "../lib/airavata/experimentModel_types.cpp"
-#include "../lib/airavata/workspaceModel_types.h"
-#include "../lib/airavata/workspaceModel_types.cpp"
-#include "../lib/airavata/airavataAPI_types.h"
-#include "../lib/airavata/airavataAPI_types.cpp"
-#include "../lib/airavata/applicationDeploymentModel_types.h"
-#include "../lib/airavata/applicationDeploymentModel_types.cpp"
-#include "../lib/airavata/applicationInterfaceModel_types.h"
-#include "../lib/airavata/applicationInterfaceModel_types.cpp"
-#include "../lib/airavata/gatewayResourceProfileModel_types.h"
-#include "../lib/airavata/gatewayResourceProfileModel_types.cpp"
-#include "../lib/airavata/computeResourceModel_types.h"
-#include "../lib/airavata/computeResourceModel_types.cpp"
-
-
-typedef struct {
-        gchar *airavata_server, *app_catalog_server;
-        gint airavata_port, app_catalog_port, airavata_timeout;
-} Settings;
-
-using namespace std;
-using namespace apache::thrift;
-using namespace apache::thrift::protocol;
-using namespace apache::thrift::transport;
-using namespace apache::airavata::api;
-using namespace apache::airavata::model::workspace::experiment;
-
-void readConfigFile(char* cfgfile, string& airavata_server, int& airavata_port, int&
airavata_timeout) {
-
-        Settings *conf;
-        GKeyFile *keyfile;
-        GKeyFileFlags flags;
-        GError *error = NULL;        
-        keyfile = g_key_file_new ();        				
-        if (!g_key_file_load_from_file (keyfile, cfgfile, flags, &error)) {
-                g_error (error->message);
-        } else {                
-                conf = g_slice_new (Settings);
-                conf->airavata_server    = g_key_file_get_string(keyfile, "airavata",
"AIRAVATA_SERVER", NULL);
-                airavata_server = conf->airavata_server;
-                conf->airavata_port      = g_key_file_get_integer(keyfile, "airavata",
"AIRAVATA_PORT", NULL);
-                airavata_port = conf->airavata_port;
-                conf->airavata_timeout  = g_key_file_get_integer(keyfile, "airavata",
"AIRAVATA_TIMEOUT", NULL);
-                airavata_timeout = conf->airavata_timeout;                
-        }				
-
-}
-
-
-int main(int argc, char **argv)
-{
-        
-        int airavata_port, airavata_timeout;
-        string airavata_server;
-				char* cfgfile;
-				cfgfile = "./airavata-client-properties.ini";
-        readConfigFile(cfgfile, airavata_server, airavata_port, airavata_timeout);				
-				airavata_server.erase(0,1);
-				airavata_server.erase(airavata_server.length()-1,1);			
-			  boost::shared_ptr<TSocket> socket(new TSocket(airavata_server, airavata_port));
-				socket->setSendTimeout(airavata_timeout);
-  			boost::shared_ptr<TTransport> transport(new TBufferedTransport(socket));	
-  			boost::shared_ptr<TProtocol> protocol(new TBinaryProtocol(transport));
-				AiravataClient airavataclient(protocol);
-				transport->open();
-				
-				
-				if(argc !=2){
-					cout << "Usage: ./getExperimentOutputs <experimentID>";
-					return 0;
-				}
-				char* expId = argv[1];			
-				std::vector<DataObjectType> _return;
-   			airavataclient.getExperimentOutputs(_return, expId);
-				int i;
-				for(i=0; i<_return.size();i++){
-					cout << _return[i].value <<"\n";
-				}
-				transport->close();
-				
-}

http://git-wip-us.apache.org/repos/asf/airavata/blob/c9af2836/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client
samples/getExperimentStatus.cpp
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client
samples/getExperimentStatus.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client
samples/getExperimentStatus.cpp
deleted file mode 100644
index 611ddac..0000000
--- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client samples/getExperimentStatus.cpp

+++ /dev/null
@@ -1,101 +0,0 @@
-#include <glib.h>
-#include <iostream>
-#include <stdint.h>
-#include <sys/time.h>
-
-#define _WIN32_WINNT 0x501
-
-#include <thrift/transport/TTransport.h>
-#include <thrift/transport/TBufferTransports.cpp>
-#include <thrift/transport/TSocket.cpp>
-#include <thrift/protocol/TProtocol.h>
-#include <thrift/protocol/TBinaryProtocol.h>
-#include <thrift/protocol/TBinaryProtocol.tcc>
-#include <thrift/TApplicationException.cpp>
-#include <thrift/transport/TTransportException.cpp>
-#include <thrift/protocol/TProtocolException.h>
-#include "../lib/airavata/Airavata.h"
-#include "../lib/airavata/Airavata.cpp"
-#include "../lib/airavata/airavataDataModel_types.h"
-#include "../lib/airavata/airavataDataModel_types.cpp"
-#include "../lib/airavata/airavataErrors_types.h"
-#include "../lib/airavata/airavataErrors_types.cpp"
-#include "../lib/airavata/experimentModel_types.h"
-#include "../lib/airavata/experimentModel_types.cpp"
-#include "../lib/airavata/workspaceModel_types.h"
-#include "../lib/airavata/workspaceModel_types.cpp"
-#include "../lib/airavata/airavataAPI_types.h"
-#include "../lib/airavata/airavataAPI_types.cpp"
-#include "../lib/airavata/applicationDeploymentModel_types.h"
-#include "../lib/airavata/applicationDeploymentModel_types.cpp"
-#include "../lib/airavata/applicationInterfaceModel_types.h"
-#include "../lib/airavata/applicationInterfaceModel_types.cpp"
-#include "../lib/airavata/gatewayResourceProfileModel_types.h"
-#include "../lib/airavata/gatewayResourceProfileModel_types.cpp"
-#include "../lib/airavata/computeResourceModel_types.h"
-#include "../lib/airavata/computeResourceModel_types.cpp"
-
-
-typedef struct {
-        gchar *airavata_server, *app_catalog_server;
-        gint airavata_port, app_catalog_port, airavata_timeout;
-} Settings;
-
-using namespace std;
-using namespace apache::thrift;
-using namespace apache::thrift::protocol;
-using namespace apache::thrift::transport;
-using namespace apache::airavata::api;
-using namespace apache::airavata::model::workspace::experiment;
-
-void readConfigFile(char* cfgfile, string& airavata_server, int& airavata_port, int&
airavata_timeout) {
-
-        Settings *conf;
-        GKeyFile *keyfile;
-        GKeyFileFlags flags;
-        GError *error = NULL;        
-        keyfile = g_key_file_new ();        				
-        if (!g_key_file_load_from_file (keyfile, cfgfile, flags, &error)) {
-                g_error (error->message);
-        } else {                
-                conf = g_slice_new (Settings);
-                conf->airavata_server    = g_key_file_get_string(keyfile, "airavata",
"AIRAVATA_SERVER", NULL);
-                airavata_server = conf->airavata_server;
-                conf->airavata_port      = g_key_file_get_integer(keyfile, "airavata",
"AIRAVATA_PORT", NULL);
-                airavata_port = conf->airavata_port;
-                conf->airavata_timeout  = g_key_file_get_integer(keyfile, "airavata",
"AIRAVATA_TIMEOUT", NULL);
-                airavata_timeout = conf->airavata_timeout;                
-        }				
-
-}
-
-
-int main(int argc, char **argv)
-{
-        
-        int airavata_port, airavata_timeout;
-        string airavata_server;
-				char* cfgfile;
-				cfgfile = "./airavata-client-properties.ini";
-        readConfigFile(cfgfile, airavata_server, airavata_port, airavata_timeout);				
-				airavata_server.erase(0,1);
-				airavata_server.erase(airavata_server.length()-1,1);			
-			  boost::shared_ptr<TSocket> socket(new TSocket(airavata_server, airavata_port));
-				socket->setSendTimeout(airavata_timeout);
-  			boost::shared_ptr<TTransport> transport(new TBufferedTransport(socket));	
-  			boost::shared_ptr<TProtocol> protocol(new TBinaryProtocol(transport));
-				AiravataClient airavataclient(protocol);
-				transport->open();
-				
-				
-				if(argc !=2){
-					cout << "Usage: ./getExperimentStatus <experimentID>";
-					return 0;
-				}
-				char* expId = argv[1];			
-				ExperimentStatus _return;		
-   			airavataclient.getExperimentStatus(_return, expId);
-   			cout << _return.experimentState <<"\n";
-				transport->close();
-				
-}

http://git-wip-us.apache.org/repos/asf/airavata/blob/c9af2836/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client
samples/launchExperiment.cpp
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client
samples/launchExperiment.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client
samples/launchExperiment.cpp
deleted file mode 100644
index 8c26881..0000000
--- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/client samples/launchExperiment.cpp

+++ /dev/null
@@ -1,99 +0,0 @@
-#include <glib.h>
-#include <iostream>
-#include <stdint.h>
-#include <sys/time.h>
-
-#define _WIN32_WINNT 0x501
-
-#include <thrift/transport/TTransport.h>
-#include <thrift/transport/TBufferTransports.cpp>
-#include <thrift/transport/TSocket.cpp>
-#include <thrift/protocol/TProtocol.h>
-#include <thrift/protocol/TBinaryProtocol.h>
-#include <thrift/protocol/TBinaryProtocol.tcc>
-#include <thrift/TApplicationException.cpp>
-#include <thrift/transport/TTransportException.cpp>
-#include <thrift/protocol/TProtocolException.h>
-#include "../lib/airavata/Airavata.h"
-#include "../lib/airavata/Airavata.cpp"
-#include "../lib/airavata/airavataDataModel_types.h"
-#include "../lib/airavata/airavataDataModel_types.cpp"
-#include "../lib/airavata/airavataErrors_types.h"
-#include "../lib/airavata/airavataErrors_types.cpp"
-#include "../lib/airavata/experimentModel_types.h"
-#include "../lib/airavata/experimentModel_types.cpp"
-#include "../lib/airavata/workspaceModel_types.h"
-#include "../lib/airavata/workspaceModel_types.cpp"
-#include "../lib/airavata/airavataAPI_types.h"
-#include "../lib/airavata/airavataAPI_types.cpp"
-#include "../lib/airavata/applicationDeploymentModel_types.h"
-#include "../lib/airavata/applicationDeploymentModel_types.cpp"
-#include "../lib/airavata/applicationInterfaceModel_types.h"
-#include "../lib/airavata/applicationInterfaceModel_types.cpp"
-#include "../lib/airavata/gatewayResourceProfileModel_types.h"
-#include "../lib/airavata/gatewayResourceProfileModel_types.cpp"
-#include "../lib/airavata/computeResourceModel_types.h"
-#include "../lib/airavata/computeResourceModel_types.cpp"
-
-
-typedef struct {
-        gchar *airavata_server, *app_catalog_server;
-        gint airavata_port, app_catalog_port, airavata_timeout;
-} Settings;
-
-using namespace std;
-using namespace apache::thrift;
-using namespace apache::thrift::protocol;
-using namespace apache::thrift::transport;
-using namespace apache::airavata::api;
-
-void readConfigFile(char* cfgfile, string& airavata_server, int& airavata_port, int&
airavata_timeout) {
-
-        Settings *conf;
-        GKeyFile *keyfile;
-        GKeyFileFlags flags;
-        GError *error = NULL;        
-        keyfile = g_key_file_new ();        				
-        if (!g_key_file_load_from_file (keyfile, cfgfile, flags, &error)) {
-                g_error (error->message);
-        } else {                
-                conf = g_slice_new (Settings);
-                conf->airavata_server    = g_key_file_get_string(keyfile, "airavata",
"AIRAVATA_SERVER", NULL);
-                airavata_server = conf->airavata_server;
-                conf->airavata_port      = g_key_file_get_integer(keyfile, "airavata",
"AIRAVATA_PORT", NULL);
-                airavata_port = conf->airavata_port;
-                conf->airavata_timeout  = g_key_file_get_integer(keyfile, "airavata",
"AIRAVATA_TIMEOUT", NULL);
-                airavata_timeout = conf->airavata_timeout;                
-        }				
-
-}
-
-
-int main(int argc, char **argv)
-{
-        
-        int airavata_port, airavata_timeout;
-        string airavata_server;
-				char* cfgfile;
-				cfgfile = "./airavata-client-properties.ini";
-        readConfigFile(cfgfile, airavata_server, airavata_port, airavata_timeout);				
-				airavata_server.erase(0,1);
-				airavata_server.erase(airavata_server.length()-1,1);			
-			  boost::shared_ptr<TSocket> socket(new TSocket(airavata_server, airavata_port));
-				socket->setSendTimeout(airavata_timeout);
-  			boost::shared_ptr<TTransport> transport(new TBufferedTransport(socket));	
-  			boost::shared_ptr<TProtocol> protocol(new TBinaryProtocol(transport));
-				AiravataClient airavataclient(protocol);
-				transport->open();
-				
-				
-				if(argc !=2){
-					cout << "Usage: ./launchExperiment <experimentID>";
-					return 0;
-				}
-				char* expId = argv[1];					
-   			airavataclient.launchExperiment(expId, "airavataToken");
-   			cout << "Experiment " << expId << " is launched.\n";
-				transport->close();
-				
-}


Mime
View raw message