net.jini.discovery.dynamic
Class DynamicLookupLocatorDiscovery
java.lang.Object
  
net.jini.discovery.dynamic.DynamicLookupLocatorDiscovery
- All Implemented Interfaces: 
 - EventListener, DiscoveryListener
 
public class DynamicLookupLocatorDiscovery
- extends Object
- implements DiscoveryListener
  
- Since:
 
  - 9.1
 
- Author:
 
  - Dan Kilman
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
DYNAMIC_LOCATORS_ENABLED_LOOKUP_ATTRIBUTE
public static final Comment DYNAMIC_LOCATORS_ENABLED_LOOKUP_ATTRIBUTE
DynamicLookupLocatorDiscovery
public DynamicLookupLocatorDiscovery(LookupDiscoveryManager ldm,
                                     boolean runningWithinRegistrar)
dynamicLocatorsEnabled
public static boolean dynamicLocatorsEnabled()
 
 
init
public void init(ServiceID serviceID)
 
 
terminate
public void terminate()
 
 
awaitInitialization
public boolean awaitInitialization(long timeout,
                                   TimeUnit unit)
                            throws InterruptedException
 
- Throws:
 InterruptedException
 
isInitialized
public boolean isInitialized()
 
 
getInitializationException
public Exception getInitializationException()
 
- Returns:
 - If an exception occured during initialization, then it will be retured, otherwise, null will be returned
 
 
discovered
public void discovered(DiscoveryEvent e)
- Description copied from interface: 
DiscoveryListener 
- Called when one or more lookup service registrars has been discovered.
 The method should return quickly; e.g., it should not make remote
 calls.
- Specified by:
 discovered in interface DiscoveryListener
 
- Parameters:
 e - the event that describes the discovered registrars
 
 
discarded
public void discarded(DiscoveryEvent e)
- Description copied from interface: 
DiscoveryListener 
- Called when one or more lookup service registrars has been discarded.
 The method should return quickly; e.g., it should not make remote
 calls.
- Specified by:
 discarded in interface DiscoveryListener
 
- Parameters:
 e - the event that describes the discarded registrars
 
 
addLookupLocatorsChangeListener
public void addLookupLocatorsChangeListener(LookupLocatorsChangeListener listener)
- Adds a listener to be notified when current locators used by the 
DiscoveryLocatorManagement
 are changed by this component
 
- Parameters:
 listener - 
 
 
removeLookupLocatorsChangeListener
public void removeLookupLocatorsChangeListener(LookupLocatorsChangeListener listener)
 
 
Copyright © GigaSpaces.