public class DiscoveryService extends Object implements DiscoveryListener, ServiceDiscoveryListener
| Constructor and Description |
|---|
DiscoveryService(InternalAdmin admin) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGroup(String group) |
void |
addLocator(String locator) |
void |
discarded(DiscoveryEvent e)
Called when one or more lookup service registrars has been discarded.
|
void |
discovered(DiscoveryEvent disEvent)
Called when one or more lookup service registrars has been discovered.
|
void |
discoverUnmanagedSpaces() |
String[] |
getGroups() |
static String |
getJMXConnection(Entry[] attrs)
Get the String value found in the JMXConnection entry, or null if the attribute set does not
include a JMXConnection
|
LookupLocator[] |
getLocators() |
boolean |
isDynamicLocatorsEnabled() |
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 |
setDiscoveryServices(Class... services) |
void |
start() |
void |
stop() |
String |
toString() |
String |
toString(boolean verbose) |
public DiscoveryService(InternalAdmin admin)
public void setDiscoveryServices(Class... services)
public void addGroup(String group)
public void addLocator(String locator)
public void discoverUnmanagedSpaces()
public void start()
public void stop()
public void discovered(DiscoveryEvent disEvent)
DiscoveryListenerdiscovered in interface DiscoveryListenerdisEvent - the event that describes the discovered registrarspublic void discarded(DiscoveryEvent e)
DiscoveryListenerdiscarded in interface DiscoveryListenere - the event that describes the discarded registrarspublic void serviceAdded(ServiceDiscoveryEvent event)
ServiceDiscoveryListenerserviceAdded 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.serviceAdded in interface ServiceDiscoveryListenerevent - 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.public static String getJMXConnection(Entry[] attrs)
public void serviceRemoved(ServiceDiscoveryEvent event)
ServiceDiscoveryListenerserviceRemoved 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.serviceRemoved in interface ServiceDiscoveryListenerevent - 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.public void serviceChanged(ServiceDiscoveryEvent event)
ServiceDiscoveryListenerserviceChanged 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.serviceChanged in interface ServiceDiscoveryListenerevent - 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.public String[] getGroups()
public LookupLocator[] getLocators()
public boolean isDynamicLocatorsEnabled()
public String toString(boolean verbose)
Copyright © GigaSpaces.