Class UDPDiscoveryReceiver
java.lang.Object
org.apache.commons.jcs3.utils.discovery.UDPDiscoveryReceiver
- All Implemented Interfaces:
- Runnable,- IShutdownObserver
Receives UDP Discovery messages.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionclassDeprecated.No longer used
- 
Constructor SummaryConstructorsConstructorDescriptionUDPDiscoveryReceiver(UDPDiscoveryService service, String multicastInterfaceString, String multicastAddressString, int multicastPort) Constructor for the UDPDiscoveryReceiver object.UDPDiscoveryReceiver(UDPDiscoveryService service, String multicastInterfaceString, InetAddress multicastAddress, int multicastPort) Constructor for the UDPDiscoveryReceiver object.
- 
Method SummaryModifier and TypeMethodDescriptionintgetCnt()voidrun()Main processing method for the UDPDiscoveryReceiver objectvoidsetCnt(int cnt) protected voidsetSerializer(IElementSerializer serializer) For testingvoidshutdown()Shuts down the socket.Deprecated.no longer used
- 
Constructor Details- 
UDPDiscoveryReceiverpublic UDPDiscoveryReceiver(UDPDiscoveryService service, String multicastInterfaceString, String multicastAddressString, int multicastPort) throws IOException Constructor for the UDPDiscoveryReceiver object.We determine our own host using InetAddress - Parameters:
- service-
- multicastInterfaceString-
- multicastAddressString-
- multicastPort-
- Throws:
- IOException
 
- 
UDPDiscoveryReceiverpublic UDPDiscoveryReceiver(UDPDiscoveryService service, String multicastInterfaceString, InetAddress multicastAddress, int multicastPort) throws IOException Constructor for the UDPDiscoveryReceiver object.- Parameters:
- service-
- multicastInterfaceString-
- multicastAddress-
- multicastPort-
- Throws:
- IOException
- Since:
- 3.1
 
 
- 
- 
Method Details- 
waitForMessageDeprecated.no longer usedWait for multicast message- Returns:
- the object message
- Throws:
- IOException
 
- 
runMain processing method for the UDPDiscoveryReceiver object
- 
setCnt- Parameters:
- cnt- The cnt to set.
 
- 
getCnt- Returns:
- Returns the cnt.
 
- 
setSerializerFor testing- Parameters:
- serializer- the serializer to set
- Since:
- 3.1
 
- 
shutdownShuts down the socket.- Specified by:
- shutdownin interface- IShutdownObserver
 
 
-