X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3802cdd96c23984d0ca4431322a3755c3ed9ef8c..054fe0158b9dbabd36c3ca35f808a572b8764b94:/org/simgrid/msg/Task.java diff --git a/org/simgrid/msg/Task.java b/org/simgrid/msg/Task.java index 7cd0d8705b..022961d490 100644 --- a/org/simgrid/msg/Task.java +++ b/org/simgrid/msg/Task.java @@ -187,7 +187,15 @@ public class Task { * with no way to retrieve whether the communication succeeded or not * */ - public native void dsend(String mailbox); + public native void dsendBounded(String mailbox, double maxrate); + + + /** Send the task asynchronously on the mailbox identified by the specified name, + * with no way to retrieve whether the communication succeeded or not + * + */ + public native void dsend(String mailbox); + /** * Sends the task on the mailbox identified by the specified name * @@ -220,7 +228,26 @@ public class Task { * @throws HostFailureException * @throws TimeoutException */ - public native void sendBounded(String alias, double maxrate) throws TransferFailureException, HostFailureException, TimeoutException; + public void sendBounded(String alias, double maxrate) throws TransferFailureException, HostFailureException, TimeoutException { + sendBounded(alias,-1,maxrate); + } + + +/** + * Sends the task on the mailbox identified by the specified alias (capping the sending rate to \a maxrate) with a timeout + * + * @param alias + * @param timeout + * @param maxrate + * @throws TransferFailureException + * @throws HostFailureException + * @throws TimeoutException + */ + public void sendBounded(String alias, double timeout, double maxrate) throws TransferFailureException, HostFailureException, TimeoutException { + sendBounded(alias,timeout,maxrate); + } + + /** * Sends the task on the mailbox asynchronously */