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
Zone s. |
ZoneAddedEventManager |
getZoneAdded()
Returns the machines added event manager allowing to add and remove
ZoneAddedEventListener s. |
ZoneRemovedEventManager |
getZoneRemoved()
Returns the grid service container added event manager allowing to add and remove
ZoneRemovedEventListener s. |
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.
|
getAdmin
forEach, iterator, spliterator
Zone[] 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()
Zone
s.ZoneAddedEventManager getZoneAdded()
ZoneAddedEventListener
s.ZoneRemovedEventManager getZoneRemoved()
ZoneRemovedEventListener
s.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.