X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e8c1022822daea024d0cea47009b2d56ac9df14f..4b704826ee3394484842e7b48d1241d8c1b33787:/src/bindings/java/org/simgrid/msg/Task.java diff --git a/src/bindings/java/org/simgrid/msg/Task.java b/src/bindings/java/org/simgrid/msg/Task.java index 5007cc4646..bd9bf7bad1 100644 --- a/src/bindings/java/org/simgrid/msg/Task.java +++ b/src/bindings/java/org/simgrid/msg/Task.java @@ -259,12 +259,14 @@ public class Task { /** * Starts listening for receiving a task from an asynchronous communication * @param mailbox + * @return a Comm handler */ public static native Comm irecv(String mailbox); /** * Retrieves next task from the mailbox identified by the specified name * * @param mailbox + * @return a Task */ public static Task receive(String mailbox) throws TransferFailureException, HostFailureException, TimeoutException { @@ -276,6 +278,7 @@ public class Task { * * @param mailbox * @param timeout + * @return a Task */ public static Task receive(String mailbox, double timeout) throws TransferFailureException, HostFailureException, TimeoutException { return receive(mailbox, timeout, null); @@ -286,6 +289,7 @@ public class Task { * * @param mailbox * @param host + * @return a Task */ public static Task receive(String mailbox, Host host) throws TransferFailureException, HostFailureException, TimeoutException { @@ -298,18 +302,21 @@ public class Task { * @param mailbox * @param timeout * @param host + * @return a Task */ - public native static Task receive(String mailbox, double timeout, Host host) throws TransferFailureException, HostFailureException, TimeoutException; + public static native Task receive(String mailbox, double timeout, Host host) throws TransferFailureException, HostFailureException, TimeoutException; /** * Starts listening for receiving a task from an asynchronous communication with a capped rate * @param mailbox + * @return a Comm handler */ public static native Comm irecvBounded(String mailbox, double rate); /** * Retrieves next task from the mailbox identified by the specified name with a capped rate * * @param mailbox + * @return a Task */ public static Task receiveBounded(String mailbox, double rate) throws TransferFailureException, HostFailureException, TimeoutException { @@ -321,6 +328,7 @@ public class Task { * * @param mailbox * @param timeout + * @return a Task */ public static Task receiveBounded(String mailbox, double timeout, double rate) throws TransferFailureException, HostFailureException, TimeoutException { return receiveBounded(mailbox, timeout, null, rate); @@ -331,6 +339,7 @@ public class Task { * * @param mailbox * @param host + * @return a Task */ public static Task receiveBounded(String mailbox, Host host, double rate) throws TransferFailureException, HostFailureException, TimeoutException { @@ -344,19 +353,20 @@ public class Task { * @param mailbox * @param timeout * @param host + * @return a Task */ - public native static Task receiveBounded(String mailbox, double timeout, Host host, double rate) throws TransferFailureException, HostFailureException, TimeoutException; + public static native Task receiveBounded(String mailbox, double timeout, Host host, double rate) throws TransferFailureException, HostFailureException, TimeoutException; /** * Tests whether there is a pending communication on the mailbox identified by the specified alias, and who sent it */ - public native static int listenFrom(String mailbox); + public static native int listenFrom(String mailbox); /** * Listen whether there is a task waiting (either for a send or a recv) on the mailbox identified by the specified alias */ - public native static boolean listen(String mailbox); + public static native boolean listen(String mailbox); /** * Class initializer, to initialize various JNI stuff