public class DefaultZones extends Object implements InternalZones
| Constructor and Description |
|---|
DefaultZones(InternalAdmin admin) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLifecycleListener(ZoneLifecycleEventListener eventListener)
Allows to add a
ZoneLifecycleEventListener. |
void |
addZone(InternalZone zone,
String zoneUidProvider) |
Admin |
getAdmin()
Returns the
Admin associated with this element. |
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.
|
Iterator<Zone> |
iterator() |
void |
removeLifeycleListener(ZoneLifecycleEventListener eventListener)
Allows to remove a
ZoneLifecycleEventListener. |
void |
removeProvider(Zone zone,
String zoneUidProvider) |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic DefaultZones(InternalAdmin admin)
public Zone[] getZones()
Zonespublic Zone getByName(String name)
Zonespublic Map<String,Zone> getNames()
ZonesZones.public Admin getAdmin()
AdminAwareAdmin associated with this element.getAdmin in interface AdminAwarepublic ZoneAddedEventManager getZoneAdded()
ZonesZoneAddedEventListeners.getZoneAdded in interface Zonespublic ZoneRemovedEventManager getZoneRemoved()
ZonesZoneRemovedEventListeners.getZoneRemoved in interface Zonespublic void addLifecycleListener(ZoneLifecycleEventListener eventListener)
ZonesZoneLifecycleEventListener.addLifecycleListener in interface Zonespublic void removeLifeycleListener(ZoneLifecycleEventListener eventListener)
ZonesZoneLifecycleEventListener.removeLifeycleListener in interface Zonespublic void addZone(InternalZone zone, String zoneUidProvider)
addZone in interface InternalZonespublic void removeProvider(Zone zone, String zoneUidProvider)
removeProvider in interface InternalZonespublic Zone waitFor(String zoneByName)
Zonespublic Zone waitFor(String zoneByName, long timeout, TimeUnit timeUnit)
Zonesnull if
the zone was not discovered.Copyright © GigaSpaces.