public interface LookupServices extends AdminAware, Iterable<LookupService>, DumpProvider
LookupServices that are currently
discovered.
Provides simple means to get all the current lus, as well as as registering for lus lifecycle (added and removed) events.
| Modifier and Type | Method and Description |
|---|---|
void |
addLifecycleListener(LookupServiceLifecycleEventListener eventListener)
Allows to add a
LookupServiceLifecycleEventListener. |
LookupServiceAddedEventManager |
getLookupServiceAdded()
Returns the lookup service added event manager allowing to add and remove
LookupServiceAddedEventListeners. |
LookupService |
getLookupServiceByUID(String id)
Returns a lus based on its uid.
|
LookupServiceRemovedEventManager |
getLookupServiceRemoved()
Returns the grid service container added event manager allowing to add and remove
LookupServiceRemovedEventManagers. |
LookupService[] |
getLookupServices()
Returns all the currently discovered lus.
|
int |
getSize()
Returns the number of lookup services current discovered.
|
Map<String,LookupService> |
getUids()
Returns a map of lookup service with the key as the uid.
|
boolean |
isEmpty()
Returns
true if there are no containers, false otherwise. |
void |
removeLifecycleListener(LookupServiceLifecycleEventListener eventListener)
Allows to remove a
LookupServiceLifecycleEventListener. |
boolean |
waitFor(int numberOfLookupServices)
Waits indefinitely till the provided number of lookup services are up.
|
boolean |
waitFor(int numberOfLookupServices,
long timeout,
TimeUnit timeUnit)
Waits for the given timeout (in time unit) till the provided number of lookup services are up.
|
getAdminforEach, iterator, spliteratorgenerateDump, generateDumpLookupService[] getLookupServices()
LookupService getLookupServiceByUID(String id)
GridComponent.getUid()Map<String,LookupService> getUids()
int getSize()
boolean isEmpty()
true if there are no containers, false otherwise.boolean waitFor(int numberOfLookupServices)
numberOfLookupServices - The number of lookup services to wait forboolean waitFor(int numberOfLookupServices,
long timeout,
TimeUnit timeUnit)
true if the required number of lookup services were discovered, false
if the timeout expired.numberOfLookupServices - The number of lookup services to wait forLookupServiceAddedEventManager getLookupServiceAdded()
LookupServiceAddedEventListeners.LookupServiceRemovedEventManager getLookupServiceRemoved()
LookupServiceRemovedEventManagers.void addLifecycleListener(LookupServiceLifecycleEventListener eventListener)
LookupServiceLifecycleEventListener.void removeLifecycleListener(LookupServiceLifecycleEventListener eventListener)
LookupServiceLifecycleEventListener.Copyright © GigaSpaces.