Package net.jini.discovery.dynamic
Class DynamicLookupLocatorDiscovery
java.lang.Object
net.jini.discovery.dynamic.DynamicLookupLocatorDiscovery
- All Implemented Interfaces:
EventListener,DiscoveryListener
- Since:
- 9.1
- Author:
- Dan Kilman
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDynamicLookupLocatorDiscovery(LookupDiscoveryManager ldm, boolean runningWithinRegistrar) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a listener to be notified when current locators used by theDiscoveryLocatorManagementare changed by this componentbooleanawaitInitialization(long timeout, TimeUnit unit) voidCalled when one or more lookup service registrars has been discarded.voidCalled when one or more lookup service registrars has been discovered.static booleanvoidbooleanvoidvoid
-
Field Details
-
DYNAMIC_LOCATORS_ENABLED_LOOKUP_ATTRIBUTE
-
-
Constructor Details
-
DynamicLookupLocatorDiscovery
-
-
Method Details
-
dynamicLocatorsEnabled
public static boolean dynamicLocatorsEnabled() -
init
-
terminate
public void terminate() -
awaitInitialization
- Throws:
InterruptedException
-
isInitialized
public boolean isInitialized() -
getInitializationException
- Returns:
- If an exception occured during initialization, then it will be retured, otherwise, null will be returned
-
discovered
Description copied from interface:DiscoveryListenerCalled 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:
discoveredin interfaceDiscoveryListener- Parameters:
e- the event that describes the discovered registrars
-
discarded
Description copied from interface:DiscoveryListenerCalled 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:
discardedin interfaceDiscoveryListener- Parameters:
e- the event that describes the discarded registrars
-
addLookupLocatorsChangeListener
Adds a listener to be notified when current locators used by theDiscoveryLocatorManagementare changed by this component -
removeLookupLocatorsChangeListener
-