public class UnicastBroadcastMethod extends AbstractBroadcastMethod
| Modifier and Type | Field and Description |
|---|---|
static int |
KIND_NODES |
| Constructor and Description |
|---|
UnicastBroadcastMethod() |
getListeners, registerProcessor, unregisterProcessorpublic static final int KIND_NODES
public UnicastBroadcastMethodConfiguration getConfiguration()
public void setConfiguration(UnicastBroadcastMethodConfiguration cfg)
public InetSocketAddress getServerAddress()
public Map<String,String> getSettings()
BroadcastMethodgetSettings in interface BroadcastMethodgetSettings in class AbstractBroadcastMethodpublic void init(BroadcastService service)
BroadcastMethodinit in interface BroadcastMethodinit in class AbstractBroadcastMethodprotected ConfigIntf getConfig()
protected void registerConfigChangeListener()
protected void removeConfigChangeListener()
public void send(RawMessage message)
RawMessage. If this message exceed the
UDPBroadcastMethodConfiguration.getPacketSize() the message will be splitted up.message - the message to be sendpublic boolean isSyncNodesEnabled()
public Collection<InetSocketAddress> getClusterNodes()
protected boolean isOwnAddress(InetSocketAddress nodeAddress)
public void shutdown()
BroadcastMethodshutdown in interface BroadcastMethodshutdown in class AbstractBroadcastMethodprotected void readConfig()
protected Set<InetSocketAddress> resolveAddresses(Collection<InetSocketAddress> unresolvedAddresses)
protected InetSocketAddress resolveAddress(InetSocketAddress unresolvedAddress)
protected void start()
protected void startServer()
protected DatagramSocket startSocket()
protected void sendPacket(DatagramPacket packet)
protected void notifyMessgageReceived(RawMessage message)
notifyMessgageReceived in class AbstractBroadcastMethodprotected boolean accept(RawMessage msg)
protected void processDatagramPacket(DatagramPacket packet)
Copyright © 2017 SAP SE. All Rights Reserved.