public interface GridServiceContainers extends AdminAware, Iterable<GridServiceContainer>, DumpProvider
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.
Modifier and Type | Method and Description |
---|---|
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.
|
ElasticGridServiceContainerProvisioningFailureEventManager |
getElasticGridServiceContainerProvisioningFailure()
Returns the elastic grid service container provisioning failure event manager allowing to add
and remove
ElasticGridServiceContainerProvisioningFailureEventListener s. |
ElasticGridServiceContainerProvisioningProgressChangedEventManager |
getElasticGridServiceContainerProvisioningProgressChanged()
Returns the elastic grid service container provisioning progress event manager allowing to
add and remove
ElasticGridServiceContainerProvisioningProgressChangedEventListener s. |
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.
|
getAdmin
forEach, iterator, spliterator
generateDump, generateDump
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
.ElasticGridServiceContainerProvisioningFailureEventManager getElasticGridServiceContainerProvisioningFailure()
ElasticGridServiceContainerProvisioningFailureEventListener
s.ElasticGridServiceContainerProvisioningProgressChangedEventManager getElasticGridServiceContainerProvisioningProgressChanged()
ElasticGridServiceContainerProvisioningProgressChangedEventListener
s.Copyright © GigaSpaces.