public class PartitionPartialReceiver extends TargetPartialReceiver
barriers, sourceStates, stateCleared, syncSentdestination, groupingSize, highWaterMark, lock, messages, operation, representSource, syncState, targets, thisDestinations, thisSources, workerId| Constructor and Description |
|---|
PartitionPartialReceiver() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSyncMessage(int source,
int target)
Add a sync message
|
void |
clean()
Clean any state associated with the receiver and go to initial state
|
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 |
isFilledToSend(int target)
Return true if we are filled to send
|
addMessage, addSyncMessageBarrier, canAcceptMessage, isComplete, merge, onSyncEvent, progress, sendToTarget, syncclearTarget, onMessageclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, onMessagepublic void init(Config cfg, DataFlowOperation op, java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> expectedIds)
MessageReceivertarget -> source tasks
init in interface MessageReceiverinit in class TargetPartialReceiverexpectedIds - expected task idsprotected void addSyncMessage(int source,
int target)
TargetReceiveraddSyncMessage in class TargetPartialReceiversource - sourcetarget - targetprotected boolean isFilledToSend(int target)
TargetReceiverisFilledToSend in class TargetPartialReceiverpublic void clean()
MessageReceiverclean in interface MessageReceiverclean in class TargetPartialReceiver