public class VirtualMulticastSender extends AbstractMulticastMessageSender
BlockingIOMulticastSender for supporting the circumstance that cluster members are located
beyond one subnet or multicast traffic is disabled
virtualPeerIdList should contain PeerIDs of cluster members which are located beyond one
subnet. So, this MulticastMessageSender will broadcast a message to endpoints which
virtualPeerIdList includes as well as one subnet on TCP protocol.localPeerIDTCP_TRANSPORT, UDP_TRANSPORT| Constructor and Description |
|---|
VirtualMulticastSender(NetworkManager networkManager,
List<PeerID> initialPeerIds) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doBroadcast(Message message)
Broadcasts or Multicasts the given
Message to all members |
Set<PeerID> |
getVirtualPeerIDSet() |
void |
removeUnknownInstances()
Remove all PeerID entries added via DISCOVERY_URI_LIST.
|
void |
start() |
void |
stop() |
broadcastpublic VirtualMulticastSender(NetworkManager networkManager, List<PeerID> initialPeerIds) throws IOException
IOExceptionpublic void start()
throws IOException
AbstractMulticastMessageSenderstart in interface ShoalMessageSenderstart in class AbstractMulticastMessageSenderIOExceptionpublic void stop()
throws IOException
AbstractMulticastMessageSenderstop in interface ShoalMessageSenderstop in class AbstractMulticastMessageSenderIOExceptionprotected boolean doBroadcast(Message message) throws IOException
Message to all membersdoBroadcast in class AbstractMulticastMessageSendermessage - a message which is sent to all membersIOException - if I/O error occurs or given parameters are not validpublic void removeUnknownInstances()
Copyright © 2017–2020 Eclipse Foundation. All rights reserved.