org.apache.jcs.auxiliary.lateral.socket.tcp.discovery
Class UDPDiscoveryManager

java.lang.Object
  extended by org.apache.jcs.auxiliary.lateral.socket.tcp.discovery.UDPDiscoveryManager

public class UDPDiscoveryManager
extends java.lang.Object

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.

Author:
Aaron Smuts

Method Summary
static UDPDiscoveryManager getInstance()
          Singelton
 UDPDiscoveryService getService(ITCPLateralCacheAttributes lca, ICompositeCacheManager cacheMgr)
          Returns the UDP Discovery service associated with this instance.
 UDPDiscoveryService getService(java.lang.String discoveryAddress, int discoveryPort, int servicePort, ICompositeCacheManager cacheMgr)
          Creates a service for the address and port if one doesn't exist already.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static UDPDiscoveryManager getInstance()
Singelton

Returns:
UDPDiscoveryManager

getService

public UDPDiscoveryService getService(ITCPLateralCacheAttributes lca,
                                      ICompositeCacheManager cacheMgr)
Returns the UDP Discovery service associated with this instance.

Parameters:
lca - ITCPLateralCacheAttributes
cacheMgr -
Returns:

getService

public UDPDiscoveryService getService(java.lang.String discoveryAddress,
                                      int discoveryPort,
                                      int servicePort,
                                      ICompositeCacheManager cacheMgr)
Creates a service for the address and port if one doesn't exist already.

TODO we may need to key this using the listener port too

Parameters:
discoveryAddress -
discoveryPort -
servicePort -
cacheMgr -
Returns:


Copyright © 2002-2007 Apache Software Foundation. All Rights Reserved.