Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rename Process.changeHost to process.migrate to match the MSG API
[simgrid.git] / org / simgrid / msg / Process.java
index 762dddb..1c85cf0 100644 (file)
@@ -266,11 +266,12 @@ public abstract class Process extends Thread {
        /**
         * Migrates a process to another host.
         *
+        * @param process               The process to migrate.
         * @param host                  The host where to migrate the process.
         *
         */
-       public void migrate(Host host)  {
-               MsgNative.processChangeHost(this, host);
+       public static void migrate(Process process, Host host)  {
+               MsgNative.processMigrate(process, host);
        }
        /**
         * Makes the current process sleep until time seconds have elapsed.