Skip to content

Commit

Permalink
added hello world example
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantanaka committed Jan 17, 2018
1 parent db50364 commit 6a29384
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions examples/simple-wms/SimpleWMSCloud.cpp
Expand Up @@ -8,6 +8,7 @@
*/

#include <iostream>
#include <memory>
#include <wrench.h>

#include "SimpleWMS.h"
Expand Down Expand Up @@ -106,6 +107,17 @@ int main(int argc, char **argv) {
std::exit(1);
}

// TRYING TO ADD HelloWorld Service
std::cerr << "Instantiating a HelloWorld service" << std::endl;
simulation.setHelloWorldService(std::unique_ptr<wrench::HelloWorld>(
new wrench::HelloWorld(hostname_list[0])
));

std::vector<std::string> hostnamelist_copy(hostname_list);
simulation.setNetworkProximityService(std::unique_ptr<wrench::NetworkProximityService>
(new wrench::NetworkProximityService(hostname_list[0],
hostnamelist_copy, 1024, 100, 0)));

/* Instantiate a WMS, to be stated on some host (wms_host), which is responsible
* for executing the workflow, and uses a scheduler (CloudScheduler). That scheduler
* is instantiated with the cloud service, the list of hosts available for running
Expand Down

0 comments on commit 6a29384

Please sign in to comment.