Package org.openspaces.admin.gateway
Interface Gateways
- All Superinterfaces:
AdminAware,Iterable<Gateway>
- All Known Subinterfaces:
InternalGateways
- All Known Implementing Classes:
DefaultGateways
Gateways holds all the different
Gateways that are currently discovered.- Since:
- 8.0.4
- Author:
- eitany
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddLifecycleListener(GatewayLifecycleEventListener eventListener) Allows to add aGatewayLifecycleEventListener.getGateway(String gatewayName) Returns theGatewayfor the given gateway name.Returns an event manager allowing to registerGatewayAddedEventListeners.Returns an event manager allowing to registerGatewayRemovedEventListeners.Gateway[]Returns all the currently discovered gateways.getNames()Returns a map ofGatewaykeyed by their respective names.intgetSize()Returns the number of gateways currently discovered.booleanisEmpty()Returnstrueif there are no gateways,falseotherwise.voidremoveLifecycleListener(GatewayLifecycleEventListener eventListener) Allows to remove aGatewayLifecycleEventListener.Waits for the default timeout specified byAdmin.setDefaultTimeout(long, TimeUnit)till the gateway is identified as deployed.Waits for the specified timeout (in time interval) till the gateway is identified as deployed.Methods inherited from interface org.openspaces.admin.AdminAware
getAdminMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getGateways
Gateway[] getGateways()Returns all the currently discovered gateways. -
getGateway
Returns theGatewayfor the given gateway name. Returnsnullif the gateway is not currently discovered. -
getNames
Returns a map ofGatewaykeyed by their respective names. -
waitFor
Waits for the default timeout specified byAdmin.setDefaultTimeout(long, TimeUnit)till the gateway is identified as deployed. Returnnullif the gateway is not deployed within the specified timeout. -
waitFor
Waits for the specified timeout (in time interval) till the gateway is identified as deployed. Returns theGateway. Returnnullif the gateway is not deployed within the specified timeout. -
getSize
int getSize()Returns the number of gateways currently discovered. -
isEmpty
boolean isEmpty()Returnstrueif there are no gateways,falseotherwise. -
getGatewayAdded
GatewayAddedEventManager getGatewayAdded()Returns an event manager allowing to registerGatewayAddedEventListeners. -
getGatewayRemoved
GatewayRemovedEventManager getGatewayRemoved()Returns an event manager allowing to registerGatewayRemovedEventListeners. -
addLifecycleListener
Allows to add aGatewayLifecycleEventListener. -
removeLifecycleListener
Allows to remove aGatewayLifecycleEventListener.
-