org.apache.jcs.auxiliary.lateral.socket.tcp
Class LateralTCPDiscoveryListenerManager

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

public class LateralTCPDiscoveryListenerManager
extends Object

The factory holds an instance of this maanger. This manager has a map of listeners, keyed to the discovery configuration. I'm not using a static map, because I'm trying to make JCS multi-instance.

During configuration, the factory is only created once per auxiliary definition. Two different laterals canot use the same discovery service. We will likey wantt o change this.


Field Summary
protected  Map instances
          Map of available instances, keyed by port.
 
Constructor Summary
LateralTCPDiscoveryListenerManager()
          Does nothing.
 
Method Summary
 LateralTCPDiscoveryListener getDiscoveryListener(ITCPLateralCacheAttributes ilca, ICompositeCacheManager cacheMgr, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer)
          Gets the instance attribute of the LateralCacheTCPListener class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instances

protected Map instances
Map of available instances, keyed by port. Note, this is not static.

Constructor Detail

LateralTCPDiscoveryListenerManager

public LateralTCPDiscoveryListenerManager()
Does nothing.

Method Detail

getDiscoveryListener

public LateralTCPDiscoveryListener getDiscoveryListener(ITCPLateralCacheAttributes ilca,
                                                        ICompositeCacheManager cacheMgr,
                                                        ICacheEventLogger cacheEventLogger,
                                                        IElementSerializer elementSerializer)
Gets the instance attribute of the LateralCacheTCPListener class.

Parameters:
ilca - ITCPLateralCacheAttributes
cacheMgr -
cacheEventLogger -
elementSerializer -
Returns:
The instance value


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