Class Comm


  • public class Comm
    extends java.lang.Object
    Communication action, representing an ongoing communication between processes.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean finished
      Indicates if the communication is finished
      protected boolean receiving
      Indicates if the communication is a receiving communication
      protected Task task
      Task associated with the comm.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Comm()
      Protected constructor, used by Comm factories in Task.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void finalize()
      Destroy the C communication object, when the GC reclaims the java part.
      Task getTask()
      Returns the task associated with the communication.
      protected void nativeFinalize()  
      static void nativeInit()
      Class initializer, to initialize various JNI stuff
      boolean test()
      Returns if the communication is finished or not.
      static void waitAll​(Comm[] comms)
      Wait all of the communications, with no maximal delay
      static void waitAll​(Comm[] comms, double timeout)
      Wait all of the communications
      static int waitAny​(Comm[] comms)
      Wait any of the communications, and return the rank of the terminating comm
      void waitCompletion()
      Wait infinitely for the completion of the communication (infinite timeout)
      void waitCompletion​(double timeout)
      Wait for the completion of the communication.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait