Class UDPDiscoveryManager
java.lang.Object
org.apache.commons.jcs3.utils.discovery.UDPDiscoveryManager
This manages UDPDiscovery Services. We should end up with one service per Lateral Cache Manager
Instance. One service works for multiple regions. We don't want a connection for each region.
-
Method Summary
Modifier and TypeMethodDescriptionstatic UDPDiscoveryManager
SingletongetService
(String discoveryAddress, int discoveryPort, int servicePort, ICompositeCacheManager cacheMgr) Deprecated.Specify serializer implementation explicitly, allow to specify udpTTLgetService
(String discoveryAddress, int discoveryPort, String serviceAddress, int servicePort, int updTTL, ICompositeCacheManager cacheMgr, IElementSerializer serializer) Creates a service for the address and port if one doesn't exist already.
-
Method Details
-
getInstance
Singleton- Returns:
- UDPDiscoveryManager
-
getService
@Deprecated public UDPDiscoveryService getService(String discoveryAddress, int discoveryPort, int servicePort, ICompositeCacheManager cacheMgr) Deprecated.Specify serializer implementation explicitly, allow to specify udpTTLCreates a service for the address and port if one doesn't exist already.We need to key this using the listener port too. TODO think of making one discovery service work for multiple types of clients.
- Parameters:
discoveryAddress
-discoveryPort
-servicePort
-cacheMgr
-- Returns:
- UDPDiscoveryService
-
getService
public UDPDiscoveryService getService(String discoveryAddress, int discoveryPort, String serviceAddress, int servicePort, int updTTL, ICompositeCacheManager cacheMgr, IElementSerializer serializer) Creates a service for the address and port if one doesn't exist already.We need to key this using the listener port too. TODO think of making one discovery service work for multiple types of clients.
- Parameters:
discoveryAddress
-discoveryPort
-serviceAddress
-servicePort
-updTTL
-cacheMgr
-serializer
-- Returns:
- UDPDiscoveryService
- Since:
- 3.1
-