Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr/gitroot/simgrid/simgrid
[simgrid.git] / src / bindings / java / org / simgrid / msg / VM.java
index 1406898..6752b0b 100644 (file)
@@ -74,13 +74,14 @@ public class VM extends Host{
                return null; 
        }
        @Override
-       protected void finalize() {
+       public void finalize() {
                try {
                        nativeFinalize();
                } catch (Throwable e) {
                        e.printStackTrace();
                }
        }
+       private native void nativeFinalize();
 
 
        /* JNI / Native code */
@@ -130,10 +131,10 @@ public class VM extends Host{
 
 
        /**
-        * Bound the VM to a certain % of its vcpu capability (e.g. 75% of vm.getSpeed())
-        * @param load percentage (between [0,100]
+        * Set a CPU bound for a given VM.
+        * @param bound in flops/s
         */
-       public native void setBound(int load);
+       public native void setBound(double bound);
 
        /**
         * start the VM
@@ -204,10 +205,6 @@ public class VM extends Host{
        public native void restore();
 
 
-       private native void nativeFinalize();
-
-
-
        /**
         * Class initializer, to initialize various JNI stuff
         */