public abstract class BaseOperation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected TWSChannel |
channel
THe underlying channel
|
protected DataFlowOperation |
op
The actual operation
|
Constructor and Description |
---|
BaseOperation(Communicator comm,
boolean stream,
java.lang.String opName)
Create the base operation
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
finish(int src)
Indicate the end of the communication
|
boolean |
isComplete()
Weather we have messages pending
|
boolean |
progress()
Progress the operation, if not called, messages will not be processed
|
boolean |
progressChannel()
Progress the channel and the operation
|
void |
reset()
Clean the operation, this doesn't close it
|
boolean |
sendBarrier(int src,
byte[] barrierId) |
void |
waitForCompletion()
Wait for the operation to complete
|
protected DataFlowOperation op
protected TWSChannel channel
public BaseOperation(Communicator comm, boolean stream, java.lang.String opName)
public boolean isComplete()
public void finish(int src)
src
- the source that is endingpublic boolean progress()
public void close()
public void reset()
public boolean progressChannel()
public boolean sendBarrier(int src, byte[] barrierId)
public void waitForCompletion()