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.
|
Count |
getElementsX(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.
|
void |
setCancelled(boolean flag)
Sets the cancelled flag.
|
void |
setElements(Datatype datatype,
int count)
Sets the number of basic elements for this status object.
|
void |
setElementsX(Datatype datatype,
Count count)
Sets the number of basic elements for this status object.
|
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 Count getElementsX(Datatype datatype) throws MPIException
Java binding of the MPI operation MPI_GET_ELEMENTS_X
.
datatype
- datatype used by receive operationMPIException
- Signals that an MPI exception of some sort has occurred.public void setElements(Datatype datatype, int count) throws MPIException
Java binding of the MPI operation MPI_STATUS_SET_ELEMENTS
.
datatype
- datatype used by receive operationcount
- number of elements to associate with the statusMPIException
- Signals that an MPI exception of some sort has occurred.public void setElementsX(Datatype datatype, Count count) throws MPIException
Java binding of the MPI operation MPI_STATUS_SET_ELEMENTS_X
.
datatype
- datatype used by receive operationcount
- number of elements to associate with the statusMPIException
- Signals that an MPI exception of some sort has occurred.public void setCancelled(boolean flag) throws MPIException
Java binding of the MPI operation MPI_STATUS_SET_CANCELLED
.
flag
- if true indicates request was cancelledMPIException
- 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()