Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines with new year.
[simgrid.git] / examples / java / cloud / migration / TestHostOnOff.java
index 68d17ef..8161ef2 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2014. The SimGrid Team.
+/* Copyright (c) 2014-2019. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -6,8 +6,13 @@
 
 package cloud.migration;
 
-import org.simgrid.msg.*;
+import org.simgrid.msg.Host;
+import org.simgrid.msg.HostFailureException;
+import org.simgrid.msg.HostNotFoundException;
+import org.simgrid.msg.Msg;
+import org.simgrid.msg.MsgException;
 import org.simgrid.msg.Process;
+import org.simgrid.msg.VM;
 
 // This test aims at validating that the migration process is robust in face of host turning off either on the SRC 
 // node or on the DST node. 
@@ -17,7 +22,7 @@ public class TestHostOnOff extends Process{
   protected Host host1 = null;
   protected Host host2 = null;
 
-  TestHostOnOff(String hostname, String name) throws  HostNotFoundException, NativeException {
+  TestHostOnOff(String hostname, String name) throws  HostNotFoundException {
     super(hostname, name);
   }
 
@@ -58,11 +63,7 @@ public class TestHostOnOff extends Process{
     int dpRate = 70;
     XVM vm0 = null;
     vm0 = new XVM(host1, "vm0",
-        1, // Nb of vcpu
         2048, // Ramsize,
-        125, // Net Bandwidth
-        null, //VM disk image
-        -1,   //size of disk image,
         125, // Net bandwidth,
         dpRate // Memory intensity
         );
@@ -117,11 +118,7 @@ public class TestHostOnOff extends Process{
     // Create VM0
     int dpRate = 70;
     XVM vm0 = new XVM(host1, "vm0",
-        1, // Nb of vcpu
         2048, // Ramsize,
-        125, // Net Bandwidth
-        null, //VM disk image
-        -1,   //size of disk image,
         125, // Net bandwidth,
         dpRate // Memory intensity
         );
@@ -137,11 +134,7 @@ public class TestHostOnOff extends Process{
 
     Msg.info("Restart VM0");
     vm0 = new XVM(host1, "vm0",
-        1, // Nb of vcpu
         2048, // Ramsize,
-        125, // Net Bandwidth
-        null, //VM disk image
-        -1,   //size of disk image,
         125, // Net bandwidth,
         dpRate // Memory intensity
         );