Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
please sonar
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 22 Mar 2017 01:42:40 +0000 (02:42 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 22 Mar 2017 01:42:40 +0000 (02:42 +0100)
examples/java/cloud/masterworker/Master.java
src/bindings/java/org/simgrid/msg/VM.java
src/surf/ptask_L07.cpp

index c7012cd..ea80d77 100644 (file)
@@ -5,8 +5,6 @@
 
 package cloud.masterworker;
 
 
 package cloud.masterworker;
 
-import java.util.ArrayList;
-
 import org.simgrid.msg.Host;
 import org.simgrid.msg.Msg;
 import org.simgrid.msg.MsgException;
 import org.simgrid.msg.Host;
 import org.simgrid.msg.Msg;
 import org.simgrid.msg.MsgException;
index 30b8852..8338a79 100644 (file)
@@ -33,10 +33,10 @@ public class VM extends Host {
        }
 
        /** Retrieve the list of all existing VMs */
        }
 
        /** Retrieve the list of all existing VMs */
-       public native static VM[] all();
+       public static native VM[] all();
 
        /** Retrieve a VM from its name */
 
        /** 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. 
         * 
        
        /** Shutdown and unref the VM. 
         * 
@@ -107,7 +107,7 @@ public class VM extends Host {
                // If the migration correcly returned, then we should change the currentHost value. 
                this.currentHost = destination; 
        }
                // 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
         *
 
        /** Immediately suspend the execution of all processes within the given VM
         *
index 19e7950..14e5cb1 100644 (file)
@@ -53,7 +53,7 @@ CpuL07Model::CpuL07Model(HostL07Model *hmodel,lmm_system_t sys)
   {
     maxminSystem_ = sys;
   }
   {
     maxminSystem_ = sys;
   }
-CpuL07Model::~CpuL07Model() {}
+CpuL07Model::~CpuL07Model() = default;
 
 NetworkL07Model::NetworkL07Model(HostL07Model *hmodel, lmm_system_t sys)
   : NetworkModel()
 
 NetworkL07Model::NetworkL07Model(HostL07Model *hmodel, lmm_system_t sys)
   : NetworkModel()
@@ -62,7 +62,7 @@ NetworkL07Model::NetworkL07Model(HostL07Model *hmodel, lmm_system_t sys)
     maxminSystem_ = sys;
     loopback_     = createLink("__loopback__", 498000000, 0.000015, SURF_LINK_FATPIPE);
   }
     maxminSystem_ = sys;
     loopback_     = createLink("__loopback__", 498000000, 0.000015, SURF_LINK_FATPIPE);
   }
-NetworkL07Model::~NetworkL07Model() {}
+NetworkL07Model::~NetworkL07Model() = default;
 
 
 double HostL07Model::nextOccuringEvent(double now)
 
 
 double HostL07Model::nextOccuringEvent(double now)
@@ -377,7 +377,7 @@ void LinkL07::setLatency(double value)
     action->updateBound();
   }
 }
     action->updateBound();
   }
 }
-LinkL07::~LinkL07() {}
+LinkL07::~LinkL07() = default;
 
 /**********
  * Action *
 
 /**********
  * Action *