X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7b138f8b1ed3e8816eda5cb26deb71fe81b4087a..717bb82fd56727b8a066418eaa654290373736ea:/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 bd49fd24b4..b4becc9a7f 100644 --- a/src/bindings/java/org/simgrid/msg/Msg.java +++ b/src/bindings/java/org/simgrid/msg/Msg.java @@ -1,14 +1,11 @@ /* JNI interface to C code for MSG. */ -/* Copyright (c) 2006-2014. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2006-2018. 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. */ package org.simgrid.msg; -import org.simgrid.NativeLib; - public final class Msg { @@ -44,12 +41,19 @@ public final class Msg { /** 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. * - * The simulation is not cleaned afterward (see - * {@link #clean()} if you really insist on cleaning the C side), so you can freely - * retrieve the information that you want from the simulation. 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() ; @@ -63,9 +67,8 @@ public final class Msg { /** Example launcher. You can use it or provide your own launcher, as you wish * @param args - * @throws MsgException */ - static public void main(String[]args) throws MsgException { + public static void main(String[]args) { /* initialize the MSG simulation. Must be done before anything else (even logging). */ Msg.init(args);