public class ControlledChannelOperation extends java.lang.Object implements ChannelListener, ChannelMessageReleaseCallback
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Config |
getConfig() |
LogicalPlan |
getInstancePlan() |
boolean |
isComplete()
Weather we have more data to complete, we only check the sends and
|
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 |
receiveDeserializeProgress(int receiveId)
Progress deserialize
|
void |
receiveProgress(int receiveId)
Progress the receive
|
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
|
void |
sendProgress(int sendId)
Go through the out messages, create channel messages by using the serializer send them
|
void |
setKeyType(MessageType keyType) |
void |
setupReceiveGroups(java.util.List<IntArrayList> receivingIds)
Start receiving from the next set of ids
|
void |
startGroup(int receiveGroup,
int sendGroup,
java.util.Map<java.lang.Integer,java.lang.Integer> expectedReceives)
Start receiving from the next receiveGroup
|
public void setupReceiveGroups(java.util.List<IntArrayList> receivingIds)
public void startGroup(int receiveGroup,
int sendGroup,
java.util.Map<java.lang.Integer,java.lang.Integer> expectedReceives)
receiveGroup - the next receiveGrouppublic 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)
ChannelListeneronReceiveComplete in interface ChannelListenerid - the rank from which the receive happenspublic boolean isComplete()
public void progress()
public void sendProgress(int sendId)
sendId - send targetpublic void receiveDeserializeProgress(int receiveId)
receiveId - public void receiveProgress(int receiveId)
receiveId - public void release(ChannelMessage message)
release in interface ChannelMessageReleaseCallbackpublic void onSendComplete(int id,
int messageStream,
ChannelMessage message)
ChannelListeneronSendComplete in interface ChannelListenerid - the rank from which the receive happensmessage - messagepublic LogicalPlan getInstancePlan()
public Config getConfig()
public void setKeyType(MessageType keyType)
public void close()