public class UDPBroadcastMethod extends AbstractBroadcastMethod
| Constructor and Description |
|---|
UDPBroadcastMethod() |
| Modifier and Type | Method and Description |
|---|---|
UDPBroadcastMethodConfiguration |
getConfiguration() |
java.net.InetAddress |
getInterfaceAddress() |
java.net.InetAddress |
getMulticastAddress() |
int |
getMulticastPort() |
java.net.NetworkInterface |
getNetworkInterfaceName() |
java.util.Map<java.lang.String,java.lang.String> |
getSettings()
Provides generic access to method specific settings
|
void |
init(BroadcastService service)
Called once when the messaging method has been registered
|
protected void |
processDatagramPacket(java.net.DatagramPacket packet) |
protected void |
readConfig() |
void |
send(RawMessage message)
Sends the given
RawMessage. |
protected void |
sendPacket(java.net.DatagramPacket packet) |
void |
setConfiguration(UDPBroadcastMethodConfiguration cfg) |
void |
shutdown()
Called before system shutdown
|
protected void |
start() |
protected void |
startServer() |
protected java.net.MulticastSocket |
startSocket() |
getListeners, notifyMessgageReceived, registerProcessor, unregisterProcessorpublic UDPBroadcastMethodConfiguration getConfiguration()
public void setConfiguration(UDPBroadcastMethodConfiguration cfg)
public java.net.InetAddress getMulticastAddress()
public int getMulticastPort()
public java.net.InetAddress getInterfaceAddress()
public java.net.NetworkInterface getNetworkInterfaceName()
public java.util.Map<java.lang.String,java.lang.String> getSettings()
BroadcastMethodgetSettings in interface BroadcastMethodgetSettings in class AbstractBroadcastMethodpublic void init(BroadcastService service)
BroadcastMethodinit in interface BroadcastMethodinit in class AbstractBroadcastMethodpublic void send(RawMessage message)
RawMessage. If this message exceed the
UDPBroadcastMethodConfiguration.getPacketSize() the message will be splitted up.message - the message to be sendpublic void shutdown()
BroadcastMethodshutdown in interface BroadcastMethodshutdown in class AbstractBroadcastMethodprotected void readConfig()
protected void start()
protected void startServer()
protected java.net.MulticastSocket startSocket()
protected void sendPacket(java.net.DatagramPacket packet)
protected void processDatagramPacket(java.net.DatagramPacket packet)
Copyright © 2018 SAP SE. All Rights Reserved.