|
GigaSpaces XAP 8.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LookupServices
Lookup Services hold all the different 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.
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface org.openspaces.admin.AdminAware |
|---|
getAdmin |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Methods inherited from interface org.openspaces.admin.dump.DumpProvider |
|---|
generateDump, generateDump |
| Method Detail |
|---|
LookupService[] 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 for
boolean 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.
|
GigaSpaces XAP 8.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||