p2pmpi.mpi
Class Request

java.lang.Object
  extended by p2pmpi.mpi.Request

public class Request
extends java.lang.Object

The handle of asynchronous communication


Constructor Summary
Request(p2pmpi.mpi.internal.MessageHandler msgHandle, java.lang.Object recvBuffer, int offset, int count, Datatype datatype, int src, int tag, int dst)
          Internal use
 
Method Summary
 Status Test()
          Test if message reception has completed.
 Status Wait()
          Blocks until a waiting asynchronous message is received
static Status[] Waitall(Request[] requests)
          Blocks until all of the operations associated with the active requests in the array have completed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Request

public Request(p2pmpi.mpi.internal.MessageHandler msgHandle,
               java.lang.Object recvBuffer,
               int offset,
               int count,
               Datatype datatype,
               int src,
               int tag,
               int dst)
Internal use

Method Detail

Waitall

public static Status[] Waitall(Request[] requests)
Blocks until all of the operations associated with the active requests in the array have completed.


Wait

public Status Wait()
Blocks until a waiting asynchronous message is received


Test

public Status Test()
Test if message reception has completed. Returns a status object if the operation identified by the request is complete, or a null reference otherwise. Java binding of the MPI operation MPI_TEST. After the call, if the operation is complete (ie, if the return value of test is non-null), the request object becomes an inactive request.