Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[java] fix some small issues found by SonarQube
[simgrid.git] / src / bindings / java / org / simgrid / msg / Host.java
index bfa1997..ae953ee 100644 (file)
@@ -66,6 +66,7 @@ public class Host {
                this.data = null;
        };
 
+       @Override
        public String toString (){
                return this.name; 
 
@@ -164,14 +165,6 @@ public class Host {
        public native void off();
 
 
-       /**
-        * This method returns the number of tasks currently running on a host.
-        * The external load is not taken in account.
-        *
-        * @return                      The number of tasks currently running on a host.
-        */ 
-       public native int getLoad();
-
        /**
         * This method returns the speed of the processor of a host,
         * regardless of the current load of the machine.
@@ -214,6 +207,8 @@ public class Host {
         */
        public native String[] getAttachedStorage();
 
+       /** Returns the amount of Joules consumed by that host so far */
+       public native double getConsumedEnergy();
 
        /**
         * Class initializer, to initialize various JNI stuff