X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ac5b02ad88c475923974464d32a904102ac66d05..be6965a2b4eeef9c8225b33abd4acb08f2b561ef:/examples/java/cloud/Slave.java diff --git a/examples/java/cloud/Slave.java b/examples/java/cloud/Slave.java index 68f003a59a..d97b0be612 100644 --- a/examples/java/cloud/Slave.java +++ b/examples/java/cloud/Slave.java @@ -1,9 +1,9 @@ -/* - * Copyright 2012. The SimGrid Team. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the license (GNU LGPL) which comes with this package. - */ +/* Copyright (c) 2012-2014. The SimGrid Team. + * All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ + package cloud; import org.simgrid.msg.Host; @@ -19,7 +19,7 @@ public class Slave extends Process { this.number = number; } public void main(String[] args) throws MsgException { - Msg.info(this.msgName() +" is listenning on MBOX:WRK0"+ number); + Msg.info(this.getName() +" is listenning on MBOX:WRK0"+ number); while(true) { Task task; try { @@ -38,7 +38,7 @@ public class Slave extends Process { } catch (MsgException e) { } - Msg.info(this.msgName() +" executed task (" + task.getName()+")"); + Msg.info(this.getName() +" executed task (" + task.getName()+")"); }