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
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.
|
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, wait
forEach, spliterator
public DefaultZones(InternalAdmin admin)
public Zone[] getZones()
Zones
public Zone getByName(String name)
Zones
public Map<String,Zone> getNames()
Zones
Zone
s.public Admin getAdmin()
AdminAware
Admin
associated with this element.getAdmin
in interface AdminAware
public ZoneAddedEventManager getZoneAdded()
Zones
ZoneAddedEventListener
s.getZoneAdded
in interface Zones
public ZoneRemovedEventManager getZoneRemoved()
Zones
ZoneRemovedEventListener
s.getZoneRemoved
in interface Zones
public void addLifecycleListener(ZoneLifecycleEventListener eventListener)
Zones
ZoneLifecycleEventListener
.addLifecycleListener
in interface Zones
public void removeLifeycleListener(ZoneLifecycleEventListener eventListener)
Zones
ZoneLifecycleEventListener
.removeLifeycleListener
in interface Zones
public void addZone(InternalZone zone, String zoneUidProvider)
addZone
in interface InternalZones
public void removeProvider(Zone zone, String zoneUidProvider)
removeProvider
in interface InternalZones
public Zone waitFor(String zoneByName)
Zones
public Zone waitFor(String zoneByName, long timeout, TimeUnit timeUnit)
Zones
null
if
the zone was not discovered.Copyright © GigaSpaces.