net.jini.discovery.dynamic
Class ServiceRegistrarServiceDiscoveryListener
java.lang.Object
  
net.jini.discovery.dynamic.ServiceRegistrarServiceDiscoveryListener
- All Implemented Interfaces: 
 - ServiceDiscoveryListener
 
public class ServiceRegistrarServiceDiscoveryListener
- extends Object
- implements ServiceDiscoveryListener
  
- Since:
 
  - 9.1
 
- Author:
 
  - Dan Kilman
 
 
 
| 
Method Summary | 
 void | 
addLookupLocatorsChangeListener(LookupLocatorsChangeListener listener)
 
            | 
 void | 
removeLookupLocatorsChangeListener(LookupLocatorsChangeListener listener)
 
            | 
 void | 
serviceAdded(ServiceDiscoveryEvent event)
 
          When the cache receives from one of the managed lookup services,
 an event signaling the registration of a service of
 interest for the first time (or for the first time since
 the service has been discarded), the cache invokes the
 serviceAdded method on all instances of
 ServiceDiscoveryListener that are registered with the
 cache; doing so notifies the entity that a service of interest has
 been discovered. | 
 void | 
serviceChanged(ServiceDiscoveryEvent event)
 
          When the cache receives, from a managed lookup service, an event
 signaling the unique modification of the attributes of a service
 of interest (across the attribute sets of all references to the
 service), the cache invokes the serviceChanged
 method on all instances of ServiceDiscoveryListener
 that are registered with the cache; doing so notifies the entity
 that the state of a service of interest has changed. | 
 void | 
serviceRemoved(ServiceDiscoveryEvent event)
 
          When the cache receives, from a managed lookup service, an event
 signaling the removal of a service of interest from the last such
 lookup service with which it was registered, the cache invokes
 the serviceRemoved method on all instances of
 ServiceDiscoveryListener that are registered with
 the cache; doing so notifies the entity that a service of interest 
 has been discarded. | 
 void | 
terminate()
 
            | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
LOCATORS_CLEANUP_TASK_INTERVAL_PROP
public static final String LOCATORS_CLEANUP_TASK_INTERVAL_PROP
- See Also:
 - Constant Field Values
 
LOCATORS_CLEANUP_TASK_INTERVAL_DEFAUL
public static final long LOCATORS_CLEANUP_TASK_INTERVAL_DEFAUL
- See Also:
 - Constant Field Values
 
LOCATORS_REMOVAL_THRESHOLD_PROP
public static final String LOCATORS_REMOVAL_THRESHOLD_PROP
- See Also:
 - Constant Field Values
 
LOCATORS_REMOVAL_THRESHOLD_DEFULT
public static final long LOCATORS_REMOVAL_THRESHOLD_DEFULT
- See Also:
 - Constant Field Values
 
GET_REGISTRAR_PROXY_TIMEOUT_PROP
public static final String GET_REGISTRAR_PROXY_TIMEOUT_PROP
- See Also:
 - Constant Field Values
 
GET_REGISTRAR_PROXY_TIMEOUT_DEFAULT
public static final int GET_REGISTRAR_PROXY_TIMEOUT_DEFAULT
- See Also:
 - Constant Field Values
 
DYNAMIC_LOCATORS_REMOVE_SEEDS_ENABELD_PROP
public static final String DYNAMIC_LOCATORS_REMOVE_SEEDS_ENABELD_PROP
- See Also:
 - Constant Field Values
 
DYNAMIC_LOCATORS_REMOVE_SEEDS_ENABELD_DEFAULT
public static final boolean DYNAMIC_LOCATORS_REMOVE_SEEDS_ENABELD_DEFAULT
- See Also:
 - Constant Field Values
 
ServiceRegistrarServiceDiscoveryListener
public ServiceRegistrarServiceDiscoveryListener(DiscoveryLocatorManagement dlm,
                                                Map<ServiceID,LookupLocator> initialLocatorsMap,
                                                ServiceRegistrar registrar,
                                                ServiceID registrarServiceID)
                                         throws RemoteException
- Throws:
 RemoteException
serviceAdded
public void serviceAdded(ServiceDiscoveryEvent event)
- Description copied from interface: 
ServiceDiscoveryListener 
- When the cache receives from one of the managed lookup services,
 an event signaling the registration of a service of
 interest for the first time (or for the first time since
 the service has been discarded), the cache invokes the
 
serviceAdded method on all instances of
 ServiceDiscoveryListener that are registered with the
 cache; doing so notifies the entity that a service of interest has
 been discovered.
- Specified by:
 serviceAdded in interface ServiceDiscoveryListener
 
- Parameters:
 event - an instance of ServiceDiscoveryEvent 
                        containing references to the service item 
                        corresponding to the event, including 
                        representations of the service's state both 
                        before and after the event.
 
 
serviceRemoved
public void serviceRemoved(ServiceDiscoveryEvent event)
- Description copied from interface: 
ServiceDiscoveryListener 
- When the cache receives, from a managed lookup service, an event
 signaling the removal of a service of interest from the last such
 lookup service with which it was registered, the cache invokes
 the 
serviceRemoved method on all instances of
 ServiceDiscoveryListener that are registered with
 the cache; doing so notifies the entity that a service of interest 
 has been discarded.
- Specified by:
 serviceRemoved in interface ServiceDiscoveryListener
 
- Parameters:
 event - a ServiceDiscoveryEvent object 
                        containing references to the service item 
                        corresponding to the event, including 
                        representations of the service's state both 
                        before and after the event.
 
 
serviceChanged
public void serviceChanged(ServiceDiscoveryEvent event)
- Description copied from interface: 
ServiceDiscoveryListener 
- When the cache receives, from a managed lookup service, an event
 signaling the unique modification of the attributes of a service
 of interest (across the attribute sets of all references to the
 service), the cache invokes the 
serviceChanged
 method on all instances of ServiceDiscoveryListener
 that are registered with the cache; doing so notifies the entity
 that the state of a service of interest has changed.
- Specified by:
 serviceChanged in interface ServiceDiscoveryListener
 
- Parameters:
 event - a ServiceDiscoveryEvent object
                        containing references to the service item 
                        corresponding to the event, including 
                        representations of the service's state both
                        before and after the event.
 
 
terminate
public void terminate()
 
 
addLookupLocatorsChangeListener
public void addLookupLocatorsChangeListener(LookupLocatorsChangeListener listener)
 
 
removeLookupLocatorsChangeListener
public void removeLookupLocatorsChangeListener(LookupLocatorsChangeListener listener)
 
 
Copyright © GigaSpaces.