Package mpi
Class Message
- java.lang.Object
-
- mpi.Message
-
public final class Message extends java.lang.Object
This class representsMPI_Message
.
-
-
Field Summary
Fields Modifier and Type Field Description protected long
handle
-
Constructor Summary
Constructors Constructor Description Message()
Creates aMPI_MESSAGE_NULL
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Status
imProbe(int source, int tag, Comm comm)
Java binding ofMPI_IMPROBE
.Request
imRecv(java.nio.Buffer buf, int count, Datatype type)
Java binding ofMPI_IMRECV
.boolean
isNoProc()
Tests if the message isMPI_MESSAGE_NO_PROC
.boolean
isNull()
Tests if the message isMPI_MESSAGE_NULL
.Status
mProbe(int source, int tag, Comm comm)
Java binding ofMPI_MPROBE
.Status
mRecv(java.lang.Object buf, int count, Datatype type)
Java binding ofMPI_MRECV
.
-
-
-
Method Detail
-
isNull
public boolean isNull()
Tests if the message isMPI_MESSAGE_NULL
.- Returns:
- true if the message is
MPI_MESSAGE_NULL
.
-
isNoProc
public boolean isNoProc()
Tests if the message isMPI_MESSAGE_NO_PROC
.- Returns:
- true if the message is
MPI_MESSAGE_NO_PROC
.
-
mProbe
public Status mProbe(int source, int tag, Comm comm) throws MPIException
Java binding ofMPI_MPROBE
.- Parameters:
source
- rank of the sourcetag
- message tagcomm
- communicator- Returns:
- status object
- Throws:
MPIException
- Signals that an MPI exception of some sort has occurred.
-
imProbe
public Status imProbe(int source, int tag, Comm comm) throws MPIException
Java binding ofMPI_IMPROBE
.- Parameters:
source
- rank of the sourcetag
- message tagcomm
- communicator- Returns:
- status object if there is a message,
null
otherwise - Throws:
MPIException
- Signals that an MPI exception of some sort has occurred.
-
mRecv
public Status mRecv(java.lang.Object buf, int count, Datatype type) throws MPIException
Java binding ofMPI_MRECV
.- Parameters:
buf
- receive buffercount
- number of elements in receve buffertype
- datatype of each receive buffer element- Returns:
- status object
- Throws:
MPIException
- Signals that an MPI exception of some sort has occurred.
-
imRecv
public Request imRecv(java.nio.Buffer buf, int count, Datatype type) throws MPIException
Java binding ofMPI_IMRECV
.- Parameters:
buf
- receive buffercount
- number of elements in receve buffertype
- datatype of each receive buffer element- Returns:
- request object
- Throws:
MPIException
- Signals that an MPI exception of some sort has occurred.
-
-