1 class org.simgrid.msg.Comm
2 ==========================
4 .. java:package:: org.simgrid.msg
7 .. java:type:: public class Comm
9 Communication action, representing an ongoing communication between processes.
16 .. java:field:: protected boolean finished
19 Indicates if the communication is finished
24 .. java:field:: protected boolean receiving
27 Indicates if the communication is a receiving communication
32 .. java:field:: protected Task task
35 Task associated with the comm. Beware, it can be null
42 .. java:constructor:: protected Comm()
45 Protected constructor, used by Comm factories in Task.
52 .. java:method:: @Deprecated @Override protected void finalize() throws Throwable
55 Destroy the C communication object, when the GC reclaims the java part.
60 .. java:method:: public Task getTask()
63 Returns the task associated with the communication. if the communication isn't finished yet, will return null.
68 .. java:method:: protected native void nativeFinalize()
74 .. java:method:: public static native void nativeInit()
77 Class initializer, to initialize various JNI stuff
82 .. java:method:: public native boolean test() throws TransferFailureException, HostFailureException, TimeoutException
85 Returns if the communication is finished or not. If the communication has finished and there was an error, raise an exception.
90 .. java:method:: public static native void waitAll(Comm[] comms, double timeout) throws TransferFailureException, HostFailureException, TimeoutException
93 Wait all of the communications
98 .. java:method:: public static void waitAll(Comm[] comms) throws TransferFailureException, HostFailureException, TimeoutException
101 Wait all of the communications, with no maximal delay
106 .. java:method:: public static native int waitAny(Comm[] comms) throws TransferFailureException, HostFailureException, TimeoutException
109 Wait any of the communications, and return the rank of the terminating comm
114 .. java:method:: public void waitCompletion() throws TransferFailureException, HostFailureException, TimeoutException
117 Wait infinitely for the completion of the communication (infinite timeout)
122 .. java:method:: public native void waitCompletion(double timeout) throws TransferFailureException, HostFailureException, TimeoutException
125 Wait for the completion of the communication. Throws an exception if there were an error in the communication.
127 :param timeout: Time before giving up (infinite time if negative)