public class AllGatherStreamingFinalReceiver extends GatherStreamingPartialReceiver
barriers, destination, isSyncSent, messages, operation, sendPendingMax, sourcesOfTarget, syncReceived, syncState, targetStates, workerId
Constructor and Description |
---|
AllGatherStreamingFinalReceiver(TreeBroadcast broadcast) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
handleMessage(int task,
java.lang.Object message,
int flags,
int dest) |
void |
init(Config cfg,
DataFlowOperation op,
java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> expectedIds)
Initialize the message receiver with tasks from which messages are expected
For each sub edge in graph, for each path, gives the expected task ids
|
protected boolean |
sendSyncForward(int target)
Handle the sync
|
aggregate, isAllEmpty, isFilledToSend, onSyncEvent, sendToTarget
allQueuesEmpty, allSyncsPresent, clean, isComplete, onFinish, onMessage, progress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, onMessage
public AllGatherStreamingFinalReceiver(TreeBroadcast broadcast)
public void init(Config cfg, DataFlowOperation op, java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> expectedIds)
MessageReceiver
target -> source tasks
init
in interface MessageReceiver
init
in class GatherStreamingPartialReceiver
expectedIds
- expected task idsprotected boolean handleMessage(int task, java.lang.Object message, int flags, int dest)
handleMessage
in class GatherStreamingPartialReceiver
protected boolean sendSyncForward(int target)
SourceReceiver
sendSyncForward
in class GatherStreamingPartialReceiver
target
- target