public class DynamicLookupLocatorDiscovery extends Object implements DiscoveryListener
Modifier and Type | Field and Description |
---|---|
static Comment |
DYNAMIC_LOCATORS_ENABLED_LOOKUP_ATTRIBUTE |
Constructor and Description |
---|
DynamicLookupLocatorDiscovery(LookupDiscoveryManager ldm,
boolean runningWithinRegistrar) |
Modifier and Type | Method and Description |
---|---|
void |
addLookupLocatorsChangeListener(LookupLocatorsChangeListener listener)
Adds a listener to be notified when current locators used by the
DiscoveryLocatorManagement
are changed by this component |
boolean |
awaitInitialization(long timeout,
TimeUnit unit) |
void |
discarded(DiscoveryEvent e)
Called when one or more lookup service registrars has been discarded.
|
void |
discovered(DiscoveryEvent e)
Called when one or more lookup service registrars has been discovered.
|
static boolean |
dynamicLocatorsEnabled() |
Exception |
getInitializationException() |
void |
init(ServiceID serviceID) |
boolean |
isInitialized() |
void |
removeLookupLocatorsChangeListener(LookupLocatorsChangeListener listener) |
void |
terminate() |
public static final Comment DYNAMIC_LOCATORS_ENABLED_LOOKUP_ATTRIBUTE
public DynamicLookupLocatorDiscovery(LookupDiscoveryManager ldm, boolean runningWithinRegistrar)
public static boolean dynamicLocatorsEnabled()
public void init(ServiceID serviceID)
public void terminate()
public boolean awaitInitialization(long timeout, TimeUnit unit) throws InterruptedException
InterruptedException
public boolean isInitialized()
public Exception getInitializationException()
public void discovered(DiscoveryEvent e)
DiscoveryListener
discovered
in interface DiscoveryListener
e
- the event that describes the discovered registrarspublic void discarded(DiscoveryEvent e)
DiscoveryListener
discarded
in interface DiscoveryListener
e
- the event that describes the discarded registrarspublic void addLookupLocatorsChangeListener(LookupLocatorsChangeListener listener)
DiscoveryLocatorManagement
are changed by this componentlistener
- public void removeLookupLocatorsChangeListener(LookupLocatorsChangeListener listener)
Copyright © GigaSpaces.