X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/611d822b02f836d7abe031cced6adc4281ef4356..e68fd495117dc356fc39a080335eb5f0328dc038:/src/bindings/java/org/simgrid/msg/Host.java diff --git a/src/bindings/java/org/simgrid/msg/Host.java b/src/bindings/java/org/simgrid/msg/Host.java index 0476da4d8e..0b52540427 100644 --- a/src/bindings/java/org/simgrid/msg/Host.java +++ b/src/bindings/java/org/simgrid/msg/Host.java @@ -7,8 +7,6 @@ package org.simgrid.msg; -import org.simgrid.msg.Storage; - /** * A host object represents a location (any possible place) where a process may run. * Thus it is represented as a physical resource with computing capabilities, some @@ -143,7 +141,17 @@ public class Host { * the value will be updated in kernel mode before returning the control to the requesting actor. */ public native double getConsumedEnergy(); - + + /** Returns the current load of the host, as a ratio = achieved_flops / (core_current_speed * core_amount) + * + * See simgrid::plugin::HostLoad::get_current_load() for the full documentation. + */ + public native double getCurrentLoad(); + /** Returns the number of flops computed of the host since the beginning of the simulation */ + public native double getComputedFlops(); + /** Returns the average load of the host as a ratio since the beginning of the simulation*/ + public native double getAvgLoad(); + /** Returns the current pstate */ public native int getPstate(); /** Changes the current pstate */ @@ -153,7 +161,9 @@ public class Host { public native double getCurrentPowerPeak(); /** Returns the speed of the processor (in flop/s) at a given pstate. See also @ref plugin_energy. */ public native double getPowerPeakAt(int pstate); - + + /** Returns the current computation load (in flops per second) */ + public native double getLoad(); /** Class initializer, to initialize various JNI stuff */ private static native void nativeInit();