|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GridServiceContainers
Grid Service Containers hold all the different GridServiceContainer
s that are currently
discovered.
Provides simple means to get all the current containers, as well as as registering for container lifecycle (added and removed) events.
Method Summary | |
---|---|
void |
addLifecycleListener(GridServiceContainerLifecycleEventListener eventListener)
Allows to add a GridServiceContainerLifecycleEventListener . |
GridServiceContainer |
getContainerByUID(String uid)
Returns a container based on its uid. |
GridServiceContainer[] |
getContainers()
Returns all the currently discovered containers. |
GridServiceContainerAddedEventManager |
getGridServiceContainerAdded()
Returns the grid service container added event manager allowing to add and remove GridServiceContainerAddedEventListener s. |
GridServiceContainerRemovedEventManager |
getGridServiceContainerRemoved()
Returns the grid service container added event manager allowing to add and remove GridServiceContainerRemovedEventListener s. |
int |
getSize()
Returns the number of containers current discovered. |
Map<String,GridServiceContainer> |
getUids()
Returns a map of grid service container with the key as the uid. |
boolean |
isEmpty()
Returns true if there are no containers, false otherwise. |
void |
removeLifecycleListener(GridServiceContainerLifecycleEventListener eventListener)
Allows to remove a GridServiceContainerLifecycleEventListener . |
boolean |
waitFor(int numberOfGridServiceContainers)
Waits indefinitely till the provided number of containers are up. |
boolean |
waitFor(int numberOfGridServiceContainers,
long timeout,
TimeUnit timeUnit)
Waits for the given timeout (in time unit) till the provided number of containers are up. |
Methods inherited from interface org.openspaces.admin.AdminAware |
---|
getAdmin |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
GridServiceContainer[] getContainers()
GridServiceContainer getContainerByUID(String uid)
GridComponent.getUid()
Map<String,GridServiceContainer> getUids()
int getSize()
boolean isEmpty()
true
if there are no containers, false
otherwise.
boolean waitFor(int numberOfGridServiceContainers)
numberOfGridServiceContainers
- The number of containers to wait forboolean waitFor(int numberOfGridServiceContainers, long timeout, TimeUnit timeUnit)
true
if the required number of containers were discovered, false
if the timeout expired.
When passing 0, will wait till there are not more containers.
numberOfGridServiceContainers
- The number of containers to wait forGridServiceContainerAddedEventManager getGridServiceContainerAdded()
GridServiceContainerAddedEventListener
s.
GridServiceContainerRemovedEventManager getGridServiceContainerRemoved()
GridServiceContainerRemovedEventListener
s.
void addLifecycleListener(GridServiceContainerLifecycleEventListener eventListener)
GridServiceContainerLifecycleEventListener
.
void removeLifecycleListener(GridServiceContainerLifecycleEventListener eventListener)
GridServiceContainerLifecycleEventListener
.
|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |