Class DefaultGateways
java.lang.Object
org.openspaces.admin.internal.gateway.DefaultGateways
- All Implemented Interfaces:
Iterable<Gateway>, AdminAware, Gateways, InternalGateways
- Since:
- 8.0.4
- Author:
- eitany
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGateway(Gateway gateway) voidaddLifecycleListener(GatewayLifecycleEventListener eventListener) Allows to add aGatewayLifecycleEventListener.getAdmin()Returns theAdminassociated with this element.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.iterator()removeGateway(String name) 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 class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
DefaultGateways
-
-
Method Details
-
getAdmin
Description copied from interface:AdminAwareReturns theAdminassociated with this element.- Specified by:
getAdminin interfaceAdminAware
-
iterator
-
getGateways
Description copied from interface:GatewaysReturns all the currently discovered gateways.- Specified by:
getGatewaysin interfaceGateways
-
getGateway
-
getNames
-
waitFor
Description copied from interface:GatewaysWaits 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
-
getSize
-
isEmpty
-
getGatewayAdded
Description copied from interface:GatewaysReturns an event manager allowing to registerGatewayAddedEventListeners.- Specified by:
getGatewayAddedin interfaceGateways
-
getGatewayRemoved
Description copied from interface:GatewaysReturns an event manager allowing to registerGatewayRemovedEventListeners.- Specified by:
getGatewayRemovedin interfaceGateways
-
addLifecycleListener
Description copied from interface:GatewaysAllows to add aGatewayLifecycleEventListener.- Specified by:
addLifecycleListenerin interfaceGateways
-
removeLifecycleListener
Description copied from interface:GatewaysAllows to remove aGatewayLifecycleEventListener.- Specified by:
removeLifecycleListenerin interfaceGateways
-
addGateway
- Specified by:
addGatewayin interfaceInternalGateways
-
removeGateway
- Specified by:
removeGatewayin interfaceInternalGateways
-