public interface TWSChannel
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the channel
|
java.nio.ByteBuffer |
createBuffer(int capacity)
Create a buffer
|
boolean |
isComplete()
Check weather we have any pending sends
|
void |
progress()
Progress both sends and receives
|
void |
progressReceives(int group)
Progress only receives belonging to a group
|
void |
progressSends()
Progress only the sends
|
boolean |
receiveMessage(int group,
int id,
int edge,
ChannelListener callback,
java.util.Queue<DataBuffer> receiveBuffers)
Receive a message
|
void |
reInit(java.util.List<JobMasterAPI.WorkerInfo> restartedWorkers)
re-initialize the channel with restarted workers
|
void |
releaseBuffers(int wId,
int e)
Release the buffers for worker and edge
|
boolean |
sendMessage(int id,
ChannelMessage message,
ChannelListener callback)
Send a message
|
boolean sendMessage(int id,
ChannelMessage message,
ChannelListener callback)
id - worker idmessage - messagecallback - callback for message completionsboolean receiveMessage(int group,
int id,
int edge,
ChannelListener callback,
java.util.Queue<DataBuffer> receiveBuffers)
id - worker idedge - the graph edge to receive fromcallback - callback for message completionsreceiveBuffers - the list of receive buffersvoid progress()
void progressSends()
void progressReceives(int group)
boolean isComplete()
java.nio.ByteBuffer createBuffer(int capacity)
capacity - capacityvoid close()
void releaseBuffers(int wId,
int e)
wId - workere - edgevoid reInit(java.util.List<JobMasterAPI.WorkerInfo> restartedWorkers)
restartedWorkers -