Package org.openspaces.admin.gateway
Interface GatewayProcessingUnits
- All Superinterfaces:
AdminAware,Iterable<GatewayProcessingUnit>
- All Known Subinterfaces:
InternalGatewayProcessingUnits
- All Known Implementing Classes:
DefaultGatewayProcessingUnits
Holds one or more
GatewayProcessingUnits.- Since:
- 9.5
- Author:
- evgeny
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddLifecycleListener(GatewayProcessingUnitLifecycleEventListener eventListener) Allows to add aGatewayProcessingUnitLifecycleEventListener.Returns theGatewayProcessingUnitfor the given gateway processing unit name.Returns an event manager allowing to registerGatewayProcessingUnitAddedEventListeners.Returns an event manager allowing to registerGatewayProcessingUnitRemovedEventListeners.Returns theGatewayProcessingUnits currently deployed.getNames()Returns a map ofGatewayProcessingUnitkeyed by their respective names.intgetSize()Returns the number of currently deployedGatewayProcessingUnits.booleanisEmpty()Returnstrueif there are no currently deployed processing units.voidAllows to remove aGatewayProcessingUnitLifecycleEventListener.Waits indefinitely till the gateway processing unit is identified as deployed.Waits for the specified timeout (in time interval) till the processing unit is identified as deployed.Methods inherited from interface org.openspaces.admin.AdminAware
getAdminMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getSize
int getSize()Returns the number of currently deployedGatewayProcessingUnits. -
isEmpty
boolean isEmpty()Returnstrueif there are no currently deployed processing units. -
getGatewayProcessingUnits
GatewayProcessingUnit[] getGatewayProcessingUnits()Returns theGatewayProcessingUnits currently deployed. -
getGatewayProcessingUnit
Returns theGatewayProcessingUnitfor the given gateway processing unit name. -
getNames
Map<String,GatewayProcessingUnit> getNames()Returns a map ofGatewayProcessingUnitkeyed by their respective names. -
waitFor
Waits indefinitely till the gateway processing unit is identified as deployed. Returns theGatewayProcessingUnit. -
waitFor
Waits for the specified timeout (in time interval) till the processing unit is identified as deployed. Returns theGatewayProcessingUnit. Returnnullif the gateway processing unit is not deployed within the specified timeout. -
getGatewayProcessingUnitAdded
GatewayProcessingUnitAddedEventManager getGatewayProcessingUnitAdded()Returns an event manager allowing to registerGatewayProcessingUnitAddedEventListeners. -
getGatewayProcessingUnitRemoved
GatewayProcessingUnitRemovedEventManager getGatewayProcessingUnitRemoved()Returns an event manager allowing to registerGatewayProcessingUnitRemovedEventListeners. -
addLifecycleListener
Allows to add aGatewayProcessingUnitLifecycleEventListener. -
removeLifecycleListener
Allows to remove aGatewayProcessingUnitLifecycleEventListener.
-