Interface Zones
- All Superinterfaces:
AdminAware, Iterable<Zone>
- All Known Subinterfaces:
InternalZones
- All Known Implementing Classes:
DefaultZones
- Author:
- kimchy
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddLifecycleListener(ZoneLifecycleEventListener eventListener) Allows to add aZoneLifecycleEventListener.Returns a discovered zone by its name.getNames()Returns a map of zone names toZones.Returns the machines added event manager allowing to add and removeZoneAddedEventListeners.Returns the grid service container added event manager allowing to add and removeZoneRemovedEventListeners.Zone[]getZones()Returns all currently discovered zones.voidremoveLifeycleListener(ZoneLifecycleEventListener eventListener) Allows to remove aZoneLifecycleEventListener.Waits indefinitely till the zone with the given name is discovered.Waits for the given timeout (in time unit) till the zone with the given name is discovered.Methods inherited from interface AdminAware
getAdminMethods inherited from interface Iterable
forEach, iterator, spliterator
-
Method Details
-
getZones
Zone[] getZones()Returns all currently discovered zones. -
getByName
-
getNames
-
getZoneAdded
ZoneAddedEventManager getZoneAdded()Returns the machines added event manager allowing to add and removeZoneAddedEventListeners. -
getZoneRemoved
ZoneRemovedEventManager getZoneRemoved()Returns the grid service container added event manager allowing to add and removeZoneRemovedEventListeners. -
addLifecycleListener
Allows to add aZoneLifecycleEventListener. -
removeLifeycleListener
Allows to remove aZoneLifecycleEventListener. -
waitFor
-
waitFor
Waits for the given timeout (in time unit) till the zone with the given name is discovered. Returns the zone if it was discovered within the provided timeout, ornullif the zone was not discovered.- Parameters:
zoneByName- The zone name- Returns:
- the zone if it was discovered within the provided timeout, or
nullif the zone was not discovered.
-