package cloud.masterworker;
-import java.util.ArrayList;
-
import org.simgrid.msg.Host;
import org.simgrid.msg.Msg;
import org.simgrid.msg.MsgException;
}
/** Retrieve the list of all existing VMs */
- public native static VM[] all();
+ public static native VM[] all();
/** Retrieve a VM from its name */
- public native static VM getVMByName(String name);
+ public static native VM getVMByName(String name);
/** Shutdown and unref the VM.
*
// If the migration correcly returned, then we should change the currentHost value.
this.currentHost = destination;
}
- private native void nativeMigration(Host destination) throws Exception;
+ private native void nativeMigration(Host destination) throws MsgException;
/** Immediately suspend the execution of all processes within the given VM
*
{
maxminSystem_ = sys;
}
-CpuL07Model::~CpuL07Model() {}
+CpuL07Model::~CpuL07Model() = default;
NetworkL07Model::NetworkL07Model(HostL07Model *hmodel, lmm_system_t sys)
: NetworkModel()
maxminSystem_ = sys;
loopback_ = createLink("__loopback__", 498000000, 0.000015, SURF_LINK_FATPIPE);
}
-NetworkL07Model::~NetworkL07Model() {}
+NetworkL07Model::~NetworkL07Model() = default;
double HostL07Model::nextOccuringEvent(double now)
action->updateBound();
}
}
-LinkL07::~LinkL07() {}
+LinkL07::~LinkL07() = default;
/**********
* Action *