public class CommunicationGroupClientImpl extends Object implements CommunicationGroupServiceClient
Constructor and Description |
---|
CommunicationGroupClientImpl(String groupName,
String taskId,
String driverId,
GroupCommNetworkHandler groupCommNetworkHandler,
Set<String> operatorConfigs,
ConfigurationSerializer configSerializer,
NetworkService<GroupCommunicationMessage> netService) |
Modifier and Type | Method and Description |
---|---|
Broadcast.Receiver |
getBroadcastReceiver(Class<? extends Name<String>> operatorName)
The broadcast receiver configured on this communication group
with the given oepratorName
|
Broadcast.Sender |
getBroadcastSender(Class<? extends Name<String>> operatorName)
The broadcast sender configured on this communication group
with the given oepratorName
|
Class<? extends Name<String>> |
getName() |
Reduce.Receiver |
getReduceReceiver(Class<? extends Name<String>> operatorName)
The reduce receiver configured on this communication group
with the given oepratorName
|
Reduce.Sender |
getReduceSender(Class<? extends Name<String>> operatorName)
The reduce sender configured on this communication group
with the given oepratorName
|
GroupChanges |
getTopologyChanges() |
void |
initialize()
Should not be used by user code
Used for initialization of the
communication group
|
void |
updateTopology()
Asks the driver to update the topology of this communication group.
|
@Inject public CommunicationGroupClientImpl(String groupName, String taskId, String driverId, GroupCommNetworkHandler groupCommNetworkHandler, Set<String> operatorConfigs, ConfigurationSerializer configSerializer, NetworkService<GroupCommunicationMessage> netService)
public Broadcast.Sender getBroadcastSender(Class<? extends Name<String>> operatorName)
CommunicationGroupClient
getBroadcastSender
in interface CommunicationGroupClient
public Reduce.Receiver getReduceReceiver(Class<? extends Name<String>> operatorName)
CommunicationGroupClient
getReduceReceiver
in interface CommunicationGroupClient
public Broadcast.Receiver getBroadcastReceiver(Class<? extends Name<String>> operatorName)
CommunicationGroupClient
getBroadcastReceiver
in interface CommunicationGroupClient
public Reduce.Sender getReduceSender(Class<? extends Name<String>> operatorName)
CommunicationGroupClient
getReduceSender
in interface CommunicationGroupClient
public void initialize()
CommunicationGroupServiceClient
initialize
in interface CommunicationGroupServiceClient
public GroupChanges getTopologyChanges()
getTopologyChanges
in interface CommunicationGroupClient
public void updateTopology()
CommunicationGroupClient
updateTopology
in interface CommunicationGroupClient
Copyright © 2015 The Apache Software Foundation. All rights reserved.