next up previous contents
Next: Intracomm and Intercomm Up: Full public interface of Previous: MPI   Contents

Comm

public class Comm {

  // Communicator Management

  public int size() {...}

  public int rank() {...}

  public Group group() {...}  // (see ``Group management'')

  public static int compare(Comm comm1, Comm comm2) {...}

  public Object clone() {...}

  public void free() {...}


  // Inter-communication

  public boolean testInter() {...}

  public Intercomm createIntercomm(Comm local_comm, int local_leader,
                                    int remote_leader, int tag) {...}


  // Caching

  public Object attrGet(int keyval) {...}


  // Blocking Send and Receive operations

  public void send(Object buf, int offset, int count, 
                   Datatype datatype, int dest, int tag) {...}

  public Status recv(Object buf, int offset, int count, 
                     Datatype datatype, int source, int tag) {...}


  // Communication Modes

  public void bsend(Object buf, int offset, int count, 
                    Datatype datatype, int dest, int tag) {...}

  public void ssend(Object buf, int offset, int count, 
                    Datatype datatype, int dest, int tag) {...}

  public void rsend(Object buf, int offset, int count, 
                    Datatype datatype, int dest, int tag) {...}


  // Nonblocking communication

  public Request isend(Object buf, int offset, int count, 
                       Datatype datatype, int dest, int tag) {...}

  public Request ibsend(Object buf, int offset, int count, 
                        Datatype datatype, int dest, int tag) {...}

  public Request issend(Object buf, int offset, int count, 
                        Datatype datatype, int dest, int tag) {...}

  public Request irsend(Object buf, int offset, int count, 
                        Datatype datatype, int dest, int tag) {...}

  public Request irecv(Object buf, int offset, int count, 
                       Datatype datatype, int source, int tag) {...}


  // Probe and cancel

  public Status iprobe(int source, int tag) {...}

  public Status probe(int source, int tag) {...}


  // Persistent communication requests

  public Prequest sendInit(Object buf, int offset, int count, 
                           Datatype datatype, int dest, int tag) {...}

  public Prequest bsendInit(Object buf, int offset, int count, 
                            Datatype datatype, int dest, int tag) {...}

  public Prequest ssendInit(Object buf, int offset, int count, 
                            Datatype datatype, int dest, int tag) {...}

  public Prequest rsendInit(Object buf, int offset, int count, 
                            Datatype datatype, int dest, int tag) {...}

  public Prequest recvInit(Object buf, int offset, int count, 
                           Datatype datatype, int source, int tag) {...}


  // Send-receive

  public Status sendrecv(Object sendbuf, int sendoffset,
                         int sendcount, Datatype sendtype,
                         int dest, int sendtag,
                         Object recvbuf, int recvoffset,
                         int recvcount, Datatype recvtype,
                         int source, int recvtag) {...}

  public Status sendrecvReplace(Object buf, int offset,
                                int count, Datatype datatype,
                                int dest, int sendtag,
                                int source, int recvtag) {...}

  // Pack and unpack

  public int pack(Object inbuf, int offset, int incount, 
                  Datatype datatype,
                  byte [] outbuf, int position) {...}

  public int unpack(byte [] inbuf, int position,
                    Object outbuf, int offset, int outcount, 
                    Datatype datatype) {...}

  public int packSize(int incount, Datatype datatype) {...}


  // Process Topologies

  int topoTest()


  // Environmental Management

  public static void errorhandlerSet(Errhandler errhandler) {...}

  public static Errhandler errorhandlerGet() {...}

  void abort(int errorcode) {...}

  ...
}



Bryan Carpenter 2002-07-12