public interface Gateways extends AdminAware, Iterable<Gateway>
Gateway
s that are currently
discovered.Modifier and Type | Method and Description |
---|---|
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.
|
getAdmin
forEach, iterator, spliterator
Gateway[] getGateways()
Gateway getGateway(String gatewayName)
Gateway
for the given gateway name. Returns null
if the gateway
is not currently discovered.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
.Copyright © GigaSpaces.