1 #include "DreamMaster.hpp"
\r
2 #include "LazyGuy.hpp"
\r
4 #include <HostNotFoundException.hpp>
\r
10 MSG_IMPLEMENT_DYNAMIC(DreamMaster, Process);
\r
12 int DreamMaster::main(int argc, char** argv)
\r
17 info("Let's create a lazy guy.");
\r
24 Host currentHost = Host::currentHost();
\r
26 info(TEXT_("Current host name : ") + TEXT_(currentHost.getName()));
\r
28 lazy = new LazyGuy(currentHost,"LazyGuy");
\r
30 info("Let's wait a little bit...");
\r
32 Process::sleep(10.0);
\r
34 info("Let's wake the lazy guy up! >:) ");
\r
40 catch(HostNotFoundException e)
\r
42 error(TEXT_(e.toString()) + TEXT_(". Stopping Now!"));
\r
46 //lazy->migrate(currentHost);
\r
48 info("OK, goodbye now.");
\r