public interface Zones extends AdminAware, Iterable<Zone>
| Modifier and Type | Method and Description | 
|---|---|
| void | addLifecycleListener(ZoneLifecycleEventListener eventListener)Allows to add a  ZoneLifecycleEventListener. | 
| Zone | getByName(String name)Returns a discovered zone by its name. | 
| Map<String,Zone> | getNames()Returns a map of zone names to  Zones. | 
| ZoneAddedEventManager | getZoneAdded()Returns the machines added event manager allowing to add and remove  ZoneAddedEventListeners. | 
| ZoneRemovedEventManager | getZoneRemoved()Returns the grid service container added event manager allowing to add and remove  ZoneRemovedEventListeners. | 
| Zone[] | getZones()Returns all currently discovered zones. | 
| void | removeLifeycleListener(ZoneLifecycleEventListener eventListener)Allows to remove a  ZoneLifecycleEventListener. | 
| Zone | waitFor(String zoneByName)Waits indefinitely till the zone with the given name is discovered. | 
| Zone | waitFor(String zoneByName,
       long timeout,
       TimeUnit timeUnit)Waits for the given timeout (in time unit) till the zone with the given name is discovered. | 
getAdminforEach, iterator, spliteratorZone[] getZones()
Zone getByName(String name)
name - The name of the zone to match.null if no match has yet been discovered.Map<String,Zone> getNames()
Zones.ZoneAddedEventManager getZoneAdded()
ZoneAddedEventListeners.ZoneRemovedEventManager getZoneRemoved()
ZoneRemovedEventListeners.void addLifecycleListener(ZoneLifecycleEventListener eventListener)
ZoneLifecycleEventListener.void removeLifeycleListener(ZoneLifecycleEventListener eventListener)
ZoneLifecycleEventListener.Zone waitFor(String zoneByName)
zoneByName - The zone nameZone waitFor(String zoneByName, long timeout, TimeUnit timeUnit)
null if
 the zone was not discovered.zoneByName - The zone namenull if
 the zone was not discovered.Copyright © GigaSpaces.