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 |
destroy()
Unbind the communication object
|
protected void |
finalize()
Finalize the communication object, destroying it.
|
Task |
getTask()
Returns the task associated with the communication.
|
static void |
nativeInit()
Class initializer, to initialize various JNI stuff
|
boolean |
test()
Returns if the communication is finished or not.
|
void |
waitCompletion()
Wait for the complemetion of the communication for an indefinite time
|
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 destroy() throws NativeException
NativeException
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 upTransferFailureException
HostFailureException
TimeoutException
public Task getTask()
public static void nativeInit()