org.apache.jcs.utils.discovery.behavior
Interface IDiscoveryListener

All Known Implementing Classes:
LateralTCPDiscoveryListener

public interface IDiscoveryListener

Interface for things that want to listen to discovery events. This will allow discovery to be used outside of the TCP lateral.


Method Summary
 void addDiscoveredService(DiscoveredService service)
          Add the service if needed.
 void removeDiscoveredService(DiscoveredService service)
          Remove the service from the list.
 

Method Detail

addDiscoveredService

void addDiscoveredService(DiscoveredService service)
Add the service if needed. This does not necessarily mean that the service is not already added. This can be called if there is a change in service information, such as the cacheNames.

Parameters:
service - the service to add

removeDiscoveredService

void removeDiscoveredService(DiscoveredService service)
Remove the service from the list.

Parameters:
service - the service to remove


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