public class SimpleAllToAll extends java.lang.Object implements ChannelReceiveCallback, ChannelSendCallback
Constructor and Description |
---|
SimpleAllToAll(Config cfg,
IWorkerController workerController,
java.util.List<java.lang.Integer> sources,
java.util.List<java.lang.Integer> targets,
int edgeId,
ReceiveCallback callback,
Allocator allocator) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
finish() |
boolean |
insert(java.nio.ByteBuffer buf,
int length,
int target) |
boolean |
insert(java.nio.ByteBuffer buf,
int length,
int[] header,
int headerLength,
int target) |
boolean |
isComplete() |
void |
receivedData(int receiveId,
ChannelBuffer buffer,
int length) |
void |
receivedHeader(int receiveId,
int finished,
int[] header,
int headerLength) |
void |
sendComplete(TRequest request) |
void |
sendFinishComplete(TRequest request) |
public SimpleAllToAll(Config cfg, IWorkerController workerController, java.util.List<java.lang.Integer> sources, java.util.List<java.lang.Integer> targets, int edgeId, ReceiveCallback callback, Allocator allocator)
public boolean insert(java.nio.ByteBuffer buf, int length, int target)
public boolean insert(java.nio.ByteBuffer buf, int length, int[] header, int headerLength, int target)
public boolean isComplete()
public void finish()
public void close()
public void receivedData(int receiveId, ChannelBuffer buffer, int length)
receivedData
in interface ChannelReceiveCallback
public void receivedHeader(int receiveId, int finished, int[] header, int headerLength)
receivedHeader
in interface ChannelReceiveCallback
public void sendComplete(TRequest request)
sendComplete
in interface ChannelSendCallback
public void sendFinishComplete(TRequest request)
sendFinishComplete
in interface ChannelSendCallback