Class DefaultZones
java.lang.Object
org.openspaces.admin.internal.zone.DefaultZones
- All Implemented Interfaces:
Iterable<Zone>,AdminAware,InternalZones,Zones
- Author:
- kimchy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLifecycleListener(ZoneLifecycleEventListener eventListener) Allows to add aZoneLifecycleEventListener.voidaddZone(InternalZone zone, String zoneUidProvider) getAdmin()Returns theAdminassociated with this element.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.iterator()voidremoveLifeycleListener(ZoneLifecycleEventListener eventListener) Allows to remove aZoneLifecycleEventListener.voidremoveProvider(Zone zone, String zoneUidProvider) 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
DefaultZones
-
-
Method Details
-
getZones
Description copied from interface:ZonesReturns all currently discovered zones. -
getByName
Description copied from interface:ZonesReturns a discovered zone by its name. -
getNames
Description copied from interface:ZonesReturns a map of zone names toZones. -
getAdmin
Description copied from interface:AdminAwareReturns theAdminassociated with this element.- Specified by:
getAdminin interfaceAdminAware
-
iterator
-
getZoneAdded
Description copied from interface:ZonesReturns the machines added event manager allowing to add and removeZoneAddedEventListeners.- Specified by:
getZoneAddedin interfaceZones
-
getZoneRemoved
Description copied from interface:ZonesReturns the grid service container added event manager allowing to add and removeZoneRemovedEventListeners.- Specified by:
getZoneRemovedin interfaceZones
-
addLifecycleListener
Description copied from interface:ZonesAllows to add aZoneLifecycleEventListener.- Specified by:
addLifecycleListenerin interfaceZones
-
removeLifeycleListener
Description copied from interface:ZonesAllows to remove aZoneLifecycleEventListener.- Specified by:
removeLifeycleListenerin interfaceZones
-
addZone
- Specified by:
addZonein interfaceInternalZones
-
removeProvider
- Specified by:
removeProviderin interfaceInternalZones
-
waitFor
Description copied from interface:ZonesWaits indefinitely till the zone with the given name is discovered. -
waitFor
Description copied from interface:ZonesWaits 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.
-