-/* 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
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.
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);
}
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
);
// 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
);
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
);