Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
java: kill obscure NativeException
[simgrid.git] / examples / java / cloud / migration / Main.java
index 244569f..b03c4b4 100644 (file)
@@ -7,13 +7,15 @@
 package cloud.migration;
 
 import org.simgrid.msg.Msg;
-import org.simgrid.msg.Host;
-import org.simgrid.msg.HostNotFoundException;
 import org.simgrid.msg.MsgException;
 
 public class Main {
   private static boolean endOfTest = false;
 
+  private Main() {
+    throw new IllegalAccessError("Utility class");
+  }
+
   public static void setEndOfTest(){
     endOfTest=true;
   }
@@ -32,7 +34,7 @@ public class Main {
 
     /* construct the platform and deploy the application */
     Msg.createEnvironment(args[0]);
-    new cloud.migration.Test("host0","Test").start();
+    new cloud.migration.Test("PM0","Test").start();
     Msg.run();
   }
 }