public class Comm
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
finished
Indicates if the communication is finished
|
protected boolean |
receiving
Indicates if the communication is a receiving communication
|
protected Task |
task
Task associated with the comm.
|
Modifier | Constructor and Description |
---|---|
protected |
Comm()
Protected constructor, used by Comm factories
in Task.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize()
Destroy the C communication object, when the GC reclaims the java part.
|
Task |
getTask()
Returns the task associated with the communication.
|
protected void |
nativeFinalize() |
static void |
nativeInit()
Class initializer, to initialize various JNI stuff
|
boolean |
test()
Returns if the communication is finished or not.
|
static void |
waitAll(Comm[] comms)
Wait all of the communications, with no maximal delay
|
static void |
waitAll(Comm[] comms,
double timeout)
Wait all of the communications
|
static void |
waitAny(Comm[] comms)
Wait any of the communications, and return the rank of the terminating comm
|
void |
waitCompletion()
Wait infinitely for the completion of the communication (infinite timeout)
|
void |
waitCompletion(double timeout)
Wait for the completion of the communication.
|
protected boolean receiving
protected boolean finished
protected Task task
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
protected void nativeFinalize()
public boolean test() throws TransferFailureException, HostFailureException, TimeoutException
public void waitCompletion() throws TransferFailureException, HostFailureException, TimeoutException
public void waitCompletion(double timeout) throws TransferFailureException, HostFailureException, TimeoutException
timeout
- Time before giving up (infinite time if negative)TransferFailureException
HostFailureException
TimeoutException
public static void waitAll(Comm[] comms, double timeout) throws TransferFailureException, HostFailureException, TimeoutException
public static void waitAll(Comm[] comms) throws TransferFailureException, HostFailureException, TimeoutException
public static void waitAny(Comm[] comms) throws TransferFailureException, HostFailureException, TimeoutException
public Task getTask()
public static void nativeInit()