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.
|
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()
finalize
in class java.lang.Object
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 Task getTask()
public static void nativeInit()