|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Zones
Method Summary | |
---|---|
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. |
Methods inherited from interface org.openspaces.admin.AdminAware |
---|
getAdmin |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
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 name
Zone waitFor(String zoneByName, long timeout, TimeUnit timeUnit)
null
if
the zone was not discovered.
zoneByName
- The zone name
null
if
the zone was not discovered.
|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |