X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dccf1b41e9c7b5a696f01abceaa2779fe65f154f..77bbf3027c4240a2e833209a3a3f186589da8577:/examples/java/cloud/migration/Daemon.java diff --git a/examples/java/cloud/migration/Daemon.java b/examples/java/cloud/migration/Daemon.java index d03d09aed6..6e1bae981b 100644 --- a/examples/java/cloud/migration/Daemon.java +++ b/examples/java/cloud/migration/Daemon.java @@ -1,4 +1,4 @@ -/* Copyright (c) 2014. The SimGrid Team. +/* Copyright (c) 2014-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -11,7 +11,7 @@ import org.simgrid.msg.Process; public class Daemon extends Process { private Task currentTask; - public Daemon(VM vm, int load) { + public Daemon(VM vm) { super((Host)vm,"Daemon"); currentTask = new Task(this.getHost().getName()+"-daemon-0", this.getHost().getSpeed()*100, 0); } @@ -24,7 +24,7 @@ public class Daemon extends Process { } catch (HostFailureException e) { e.printStackTrace(); } catch (TaskCancelledException e) { - System.out.println("task cancelled"); + Msg.info("task cancelled"); suspend(); // Suspend the process } currentTask = new Task(this.getHost().getName()+"-daemon-"+(i++), this.getHost().getSpeed()*100, 0);