4 * Copyright 2006,2007,2010. The SimGrid Team. All rights reserved.
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the license (GNU LGPL) which comes with this package.
12 public class DreamMaster extends simgrid.msg.Process {
14 public void main(String[] args) throws MsgException {
16 Msg.info("Let's create a lazy guy.");
19 Host currentHost = Host.currentHost();
20 Msg.info("Current hostname: " + currentHost.getName());
22 LazyGuy lazy = new LazyGuy(currentHost,"LazyGuy");
23 Msg.info("Let's wait a little bit...");
25 simgrid.msg.Process.waitFor(10.0);
27 Msg.info("Let's wake the lazy guy up! >:) ");
30 } catch(HostNotFoundException e) {
31 System.err.println(e);
35 //lazy.migrate(currentHost);
37 Msg.info("OK, goodbye now.");