Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix a typo in the java-cloud example and add one TODO related to the migration invoca...
authorAdrien Lebre <alebre@dhcp-3-69.rech172-28.emn.fr>
Wed, 16 Jul 2014 16:09:37 +0000 (18:09 +0200)
committerAdrien Lebre <alebre@dhcp-3-69.rech172-28.emn.fr>
Wed, 16 Jul 2014 16:09:37 +0000 (18:09 +0200)
examples/java/cloud/Master.java
src/bindings/java/org/simgrid/msg/VM.java

index 57806fd..2cb86b5 100644 (file)
@@ -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]);
                }
                
                
index f77a4af..4454960 100644 (file)
@@ -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; 
        }