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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.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
Description copied from interface:GatewaysReturns theGatewayfor the given gateway name. Returnsnullif the gateway is not currently discovered.- Specified by:
getGatewayin interfaceGateways
-
getNames
Description copied from interface:GatewaysReturns a map ofGatewaykeyed by their respective names. -
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
Description copied from interface:GatewaysWaits 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
public int getSize()Description copied from interface:GatewaysReturns the number of gateways currently discovered. -
isEmpty
public boolean isEmpty()Description copied from interface:GatewaysReturnstrueif there are no gateways,falseotherwise. -
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
-