public final class Status
extends java.lang.Object
MPI_Status
.Modifier and Type | Field and Description |
---|---|
protected long[] |
data |
Modifier | Constructor and Description |
---|---|
protected |
Status()
Status objects must be created only by the MPI methods.
|
Modifier and Type | Method and Description |
---|---|
int |
getCount(Datatype datatype)
Returns the number of received entries.
|
int |
getElements(Datatype datatype)
Retrieves the number of basic elements from status.
|
int |
getError()
Returns the
MPI_ERROR of message. |
int |
getIndex()
Returns the index of message.
|
int |
getSource()
Returns the "source" of message.
|
int |
getTag()
Returns the "tag" of message.
|
boolean |
isCancelled()
Tests if the communication was cancelled.
|
protected Status()
public int getCount(Datatype datatype) throws MPIException
Java binding of the MPI operation MPI_GET_COUNT
.
datatype
- datatype of each item in receive bufferMPIException
- Signals that an MPI exception of some sort has occurred.public boolean isCancelled() throws MPIException
Java binding of the MPI operation MPI_TEST_CANCELLED
.
MPIException
- Signals that an MPI exception of some sort has occurred.public int getElements(Datatype datatype) throws MPIException
Java binding of the MPI operation MPI_GET_ELEMENTS
.
datatype
- datatype used by receive operationMPIException
- Signals that an MPI exception of some sort has occurred.public int getSource()
Java binding of the MPI value MPI_SOURCE
.
public int getTag()
Java binding of the MPI value MPI_TAG
.
public int getError()
MPI_ERROR
of message.public int getIndex()