org.apache.jcs.utils.discovery
Class UDPDiscoveryManager

java.lang.Object
  extended by org.apache.jcs.utils.discovery.UDPDiscoveryManager

public class UDPDiscoveryManager
extends 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(String discoveryAddress, int discoveryPort, int servicePort, ICompositeCacheManager cacheMgr, ICacheEventLogger cacheEventLogger)
          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(String discoveryAddress,
                                      int discoveryPort,
                                      int servicePort,
                                      ICompositeCacheManager cacheMgr,
                                      ICacheEventLogger cacheEventLogger)
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 mutliple types of clients.

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


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