|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Gateways
Gateways holds all the different Gateway
s that are currently
discovered.
Method Summary | |
---|---|
void |
addLifecycleListener(GatewayLifecycleEventListener eventListener)
Allows to add a GatewayLifecycleEventListener . |
Gateway |
getGateway(String gatewayName)
Returns the Gateway for the given gateway name. |
GatewayAddedEventManager |
getGatewayAdded()
Returns an event manager allowing to register GatewayAddedEventListener s. |
GatewayRemovedEventManager |
getGatewayRemoved()
Returns an event manager allowing to register GatewayRemovedEventListener s. |
Gateway[] |
getGateways()
Returns all the currently discovered gateways. |
Map<String,Gateway> |
getNames()
Returns a map of Gateway keyed by their respective names. |
int |
getSize()
Returns the number of gateways currently discovered. |
boolean |
isEmpty()
Returns true if there are no gateways, false otherwise. |
void |
removeLifecycleListener(GatewayLifecycleEventListener eventListener)
Allows to remove a GatewayLifecycleEventListener . |
Gateway |
waitFor(String gatewayName)
Waits for the default timeout specified by Admin.setDefaultTimeout(long, TimeUnit) till the gateway is identified as deployed. |
Gateway |
waitFor(String gatewayName,
long timeout,
TimeUnit timeUnit)
Waits for the specified timeout (in time interval) till the gateway is identified as deployed. |
Methods inherited from interface org.openspaces.admin.AdminAware |
---|
getAdmin |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
Gateway[] getGateways()
Gateway getGateway(String gatewayName)
Gateway
for the given gateway name. Returns null
if the gateway
is not currently discovered.
Map<String,Gateway> getNames()
Gateway
keyed by their respective names.
Gateway waitFor(String gatewayName)
Admin.setDefaultTimeout(long, TimeUnit)
till the gateway is identified as deployed.
Return null
if the gateway is not deployed
within the specified timeout.
Gateway waitFor(String gatewayName, long timeout, TimeUnit timeUnit)
Gateway
. Return null
if the gateway is not deployed
within the specified timeout.
int getSize()
boolean isEmpty()
true
if there are no gateways, false
otherwise.
GatewayAddedEventManager getGatewayAdded()
GatewayAddedEventListener
s.
GatewayRemovedEventManager getGatewayRemoved()
GatewayRemovedEventListener
s.
void addLifecycleListener(GatewayLifecycleEventListener eventListener)
GatewayLifecycleEventListener
.
void removeLifecycleListener(GatewayLifecycleEventListener eventListener)
GatewayLifecycleEventListener
.
|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |