public class UDPDiscoveryReceiver extends Object implements Runnable, IShutdownObserver
Modifier and Type | Class and Description |
---|---|
class |
UDPDiscoveryReceiver.MessageHandler
Deprecated.
No longer used
|
Constructor and Description |
---|
UDPDiscoveryReceiver(UDPDiscoveryService service,
String multicastInterfaceString,
InetAddress multicastAddress,
int multicastPort)
Constructor for the UDPDiscoveryReceiver object.
|
UDPDiscoveryReceiver(UDPDiscoveryService service,
String multicastInterfaceString,
String multicastAddressString,
int multicastPort)
Constructor for the UDPDiscoveryReceiver object.
|
Modifier and Type | Method and Description |
---|---|
int |
getCnt() |
void |
run()
Main processing method for the UDPDiscoveryReceiver object
|
void |
setCnt(int cnt) |
protected void |
setSerializer(IElementSerializer serializer)
For testing
|
void |
shutdown()
Shuts down the socket.
|
Object |
waitForMessage()
Deprecated.
no longer used
|
public UDPDiscoveryReceiver(UDPDiscoveryService service, String multicastInterfaceString, String multicastAddressString, int multicastPort) throws IOException
We determine our own host using InetAddress
service
- multicastInterfaceString
- multicastAddressString
- multicastPort
- IOException
public UDPDiscoveryReceiver(UDPDiscoveryService service, String multicastInterfaceString, InetAddress multicastAddress, int multicastPort) throws IOException
service
- multicastInterfaceString
- multicastAddress
- multicastPort
- IOException
@Deprecated public Object waitForMessage() throws IOException
IOException
public void run()
public void setCnt(int cnt)
cnt
- The cnt to set.public int getCnt()
protected void setSerializer(IElementSerializer serializer)
serializer
- the serializer to setpublic void shutdown()
shutdown
in interface IShutdownObserver
Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.