From e06fba861f676841107140640d9961e6661be588 Mon Sep 17 00:00:00 2001 From: Adrien Lebre Date: Wed, 16 Jul 2014 18:09:37 +0200 Subject: [PATCH] Fix a typo in the java-cloud example and add one TODO related to the migration invocation in VM.java - adrien --- examples/java/cloud/Master.java | 2 +- src/bindings/java/org/simgrid/msg/VM.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/java/cloud/Master.java b/examples/java/cloud/Master.java index 57806fdc89..2cb86b5613 100644 --- a/examples/java/cloud/Master.java +++ b/examples/java/cloud/Master.java @@ -73,7 +73,7 @@ public class Master extends Process { Msg.info("Migrate everyone to "+hosts[3].getName()); for (int i = 0; i < vms.size(); i++) { Msg.info("Migrate "+vms.get(i).getName()+"from"+hosts[i+1].getName()+"to "+hosts[3].getName()); - vms.get(i).migrate(hosts[2]); + vms.get(i).migrate(hosts[3]); } diff --git a/src/bindings/java/org/simgrid/msg/VM.java b/src/bindings/java/org/simgrid/msg/VM.java index f77a4af1ed..4454960a85 100644 --- a/src/bindings/java/org/simgrid/msg/VM.java +++ b/src/bindings/java/org/simgrid/msg/VM.java @@ -155,6 +155,8 @@ public class VM extends Host{ */ public void migrate(Host destination){ this.internalmig(destination); + // TODO we should test whether the migration has been correctly finalized. + // If and only if it is ok, then we should change the currentHost value. this.currentHost = destination; } -- 2.20.1