4 * Copyright 2006,2007 Martin Quinson, Malek Cherier
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the license (GNU LGPL) which comes with this package.
13 public class DreamMaster extends simgrid.msg.Process {
15 public void main(String[] args) throws JniException, NativeException {
18 Msg.info("Let's create a lazy guy.");
22 Host currentHost = Host.currentHost();
24 Msg.info("Current host name : " + currentHost.getName());
26 LazyGuy lazy = new LazyGuy(currentHost,"LazyGuy");
28 Msg.info("Let's wait a little bit...");
30 simgrid.msg.Process.waitFor(10.0);
32 Msg.info("Let's wake the lazy guy up! >:) ");
38 catch(HostNotFoundException e)
40 System.err.println(e.toString());
44 //lazy.migrate(currentHost);
48 Msg.info("OK, goodbye now.");