X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3c4965d1ed8267a5693fc79f76b20c224a870ba1..ea74f5d95928a521a588737e81f1de94eef25d19:/src/bindings/java/org/simgrid/msg/Msg.java diff --git a/src/bindings/java/org/simgrid/msg/Msg.java b/src/bindings/java/org/simgrid/msg/Msg.java index cc1cb7d0ba..bc7de74b50 100644 --- a/src/bindings/java/org/simgrid/msg/Msg.java +++ b/src/bindings/java/org/simgrid/msg/Msg.java @@ -1,6 +1,6 @@ /* JNI interface to C code for MSG. */ -/* Copyright (c) 2006-2017. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2006-2022. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -37,15 +37,23 @@ public final class Msg { * @param args The arguments of the command line of the simulation. */ public static final native void init(String[]args); - + /** Tell the kernel that you want to use the energy plugin */ public static final native void energyInit(); + + /** Tell the kernel that you want to use the filesystem plugin. */ public static final native void fileSystemInit(); + /** Initializes the HostLoad plugin. + * + * The HostLoad plugin provides an API to get the current load of each host. + */ + public static final native void loadInit(); + /** Run the MSG simulation. * - * After the simulation, you can freely retrieve the information that you want.. - * In particular, retrieving the status of a process or the current date is perfectly ok. + * After the simulation, you can freely retrieve the information that you want.. + * In particular, retrieving the status of a process or the current date is perfectly ok. */ public static final native void run() ; @@ -75,7 +83,7 @@ public final class Msg { /* Execute the simulation */ Msg.run(); } - + /* Class initializer, to initialize various JNI stuff */ static { org.simgrid.NativeLib.nativeInit();