public class ChannelDataFlowOperation extends java.lang.Object implements ChannelListener, ChannelMessageReleaseCallback
Modifier and Type | Method and Description |
---|---|
void |
close() |
Config |
getConfig() |
LogicalPlan |
getInstancePlan() |
void |
init(Config cfg,
MessageType messageType,
LogicalPlan plan,
int graphEdge,
java.util.Set<java.lang.Integer> recvExecutors,
ChannelReceiver msgReceiver,
java.util.Map<java.lang.Integer,java.util.concurrent.ArrayBlockingQueue<OutMessage>> pendingSendPerSource,
java.util.Map<java.lang.Integer,java.util.Queue<InMessage>> pRMPS,
java.util.Map<java.lang.Integer,java.util.Queue<InMessage>> pendingReceiveDesrialize,
java.util.Map<java.lang.Integer,MessageSerializer> serializer,
java.util.Map<java.lang.Integer,MessageDeSerializer> deSerializer,
boolean keyed) |
void |
init(Config cfg,
MessageType messageType,
MessageType recvMessageType,
LogicalPlan plan,
int graphEdge,
java.util.Set<java.lang.Integer> recvExecutors,
ChannelReceiver msgReceiver,
java.util.Map<java.lang.Integer,java.util.concurrent.ArrayBlockingQueue<OutMessage>> pendingSendPerSource,
java.util.Map<java.lang.Integer,java.util.Queue<InMessage>> pRMPS,
java.util.Map<java.lang.Integer,java.util.Queue<InMessage>> pendingReceiveDesrialize,
java.util.Map<java.lang.Integer,MessageSerializer> serializer,
java.util.Map<java.lang.Integer,MessageDeSerializer> deSerializer,
boolean keyed) |
void |
init(Config cfg,
MessageType messageType,
MessageType rcvDataType,
MessageType kType,
MessageType rcvKeyType,
LogicalPlan plan,
int graphEdge,
java.util.Set<java.lang.Integer> recvExecutors,
ChannelReceiver msgReceiver,
java.util.Map<java.lang.Integer,java.util.concurrent.ArrayBlockingQueue<OutMessage>> pendingSendPerSource,
java.util.Map<java.lang.Integer,java.util.Queue<InMessage>> pRMPS,
java.util.Map<java.lang.Integer,java.util.Queue<InMessage>> pendingReceiveDesrialize,
java.util.Map<java.lang.Integer,MessageSerializer> serializer,
java.util.Map<java.lang.Integer,MessageDeSerializer> deSerializer,
boolean keyed) |
boolean |
isComplete()
Weather we have more data to complete
|
void |
onReceiveComplete(int id,
int e,
DataBuffer buffer)
After a receive is complete this function gets called
|
void |
onSendComplete(int id,
int messageStream,
ChannelMessage message)
After a send is complete this function gets called
|
void |
progress()
Progress the serializations and receives, this method must be called by threads to
send messages through this communication
|
void |
release(ChannelMessage message) |
boolean |
sendMessage(int source,
java.lang.Object message,
int target,
int flags,
RoutingParameters routingParameters)
Sends a message from a originating location
|
protected boolean |
sendMessagePartial(int source,
java.lang.Object message,
int target,
int flags,
RoutingParameters routingParameters)
Sends a message from a partial location
|
void |
setKeyType(MessageType keyType) |
public void init(Config cfg, MessageType messageType, MessageType rcvDataType, MessageType kType, MessageType rcvKeyType, LogicalPlan plan, int graphEdge, java.util.Set<java.lang.Integer> recvExecutors, ChannelReceiver msgReceiver, java.util.Map<java.lang.Integer,java.util.concurrent.ArrayBlockingQueue<OutMessage>> pendingSendPerSource, java.util.Map<java.lang.Integer,java.util.Queue<InMessage>> pRMPS, java.util.Map<java.lang.Integer,java.util.Queue<InMessage>> pendingReceiveDesrialize, java.util.Map<java.lang.Integer,MessageSerializer> serializer, java.util.Map<java.lang.Integer,MessageDeSerializer> deSerializer, boolean keyed)
public void init(Config cfg, MessageType messageType, LogicalPlan plan, int graphEdge, java.util.Set<java.lang.Integer> recvExecutors, ChannelReceiver msgReceiver, java.util.Map<java.lang.Integer,java.util.concurrent.ArrayBlockingQueue<OutMessage>> pendingSendPerSource, java.util.Map<java.lang.Integer,java.util.Queue<InMessage>> pRMPS, java.util.Map<java.lang.Integer,java.util.Queue<InMessage>> pendingReceiveDesrialize, java.util.Map<java.lang.Integer,MessageSerializer> serializer, java.util.Map<java.lang.Integer,MessageDeSerializer> deSerializer, boolean keyed)
public void init(Config cfg, MessageType messageType, MessageType recvMessageType, LogicalPlan plan, int graphEdge, java.util.Set<java.lang.Integer> recvExecutors, ChannelReceiver msgReceiver, java.util.Map<java.lang.Integer,java.util.concurrent.ArrayBlockingQueue<OutMessage>> pendingSendPerSource, java.util.Map<java.lang.Integer,java.util.Queue<InMessage>> pRMPS, java.util.Map<java.lang.Integer,java.util.Queue<InMessage>> pendingReceiveDesrialize, java.util.Map<java.lang.Integer,MessageSerializer> serializer, java.util.Map<java.lang.Integer,MessageDeSerializer> deSerializer, boolean keyed)
protected boolean sendMessagePartial(int source, java.lang.Object message, int target, int flags, RoutingParameters routingParameters)
source
- source idmessage
- the actual messagetarget
- an specific targetflags
- message flagsroutingParameters
- routing parameterpublic boolean sendMessage(int source, java.lang.Object message, int target, int flags, RoutingParameters routingParameters)
source
- source idmessage
- the actual messagetarget
- an specific targetflags
- message flagsroutingParameters
- routing parameterpublic void onReceiveComplete(int id, int e, DataBuffer buffer)
ChannelListener
onReceiveComplete
in interface ChannelListener
id
- the rank from which the receive happenspublic boolean isComplete()
public void progress()
public void release(ChannelMessage message)
release
in interface ChannelMessageReleaseCallback
public void onSendComplete(int id, int messageStream, ChannelMessage message)
ChannelListener
onSendComplete
in interface ChannelListener
id
- the rank from which the receive happensmessage
- messagepublic LogicalPlan getInstancePlan()
public Config getConfig()
public void setKeyType(MessageType keyType)
public void close()