Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
woops, fix Java after removing an unimplemented function
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 16 Dec 2015 11:37:45 +0000 (12:37 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 16 Dec 2015 11:37:45 +0000 (12:37 +0100)
src/bindings/java/jmsg_host.cpp
src/bindings/java/jmsg_host.h
src/bindings/java/org/simgrid/msg/Host.java

index 5e1019a..9eb8312 100644 (file)
@@ -202,17 +202,6 @@ Java_org_simgrid_msg_Host_getCoreNumber(JNIEnv * env,
   return (jdouble) MSG_host_get_core_number(host);
 }
 
-JNIEXPORT jint JNICALL
-Java_org_simgrid_msg_Host_getLoad(JNIEnv * env, jobject jhost) {
-  msg_host_t host = jhost_get_native(env, jhost);
-
-  if (!host) {
-    jxbt_throw_notbound(env, "host", jhost);
-    return -1;
-  }
-
-  return (jint) MSG_get_host_msgload(host);
-}
 JNIEXPORT jobject JNICALL
 Java_org_simgrid_msg_Host_getProperty(JNIEnv *env, jobject jhost, jobject jname) {
   msg_host_t host = jhost_get_native(env, jhost);
index 4a82c34..b3d8b81 100644 (file)
@@ -161,14 +161,6 @@ JNIEXPORT jdouble JNICALL Java_org_simgrid_msg_Host_getSpeed
  */
 JNIEXPORT jdouble JNICALL Java_org_simgrid_msg_Host_getCoreNumber
     (JNIEnv *, jobject);
-/*
- * Class               org_simgrid_msg_Host
- * Method              getLoad
- * Signature   ()I
- */
-JNIEXPORT jint JNICALL
-Java_org_simgrid_msg_Host_getLoad(JNIEnv * env,
-                                       jobject jhost);
 /*
  * Class        org_simgrid_msg_Host
  * Method       getProperty
index bfa1997..6738525 100644 (file)
@@ -164,14 +164,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.