Class DefaultGatewayProcessingUnits
java.lang.Object
org.openspaces.admin.internal.gateway.DefaultGatewayProcessingUnits
- All Implemented Interfaces:
Iterable<GatewayProcessingUnit>,AdminAware,GatewayProcessingUnits,InternalGatewayProcessingUnits
- Since:
- 9.5
- Author:
- evgeny
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGatewayProcessingUnit(GatewayProcessingUnit gatewayProcessingUnit) voidaddLifecycleListener(GatewayProcessingUnitLifecycleEventListener eventListener) Allows to add aGatewayProcessingUnitLifecycleEventListener.getAdmin()Returns theAdminassociated with this element.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.iterator()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 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
-
DefaultGatewayProcessingUnits
-
-
Method Details
-
addGatewayProcessingUnit
- Specified by:
addGatewayProcessingUnitin interfaceInternalGatewayProcessingUnits
-
removeGatewayProcessingUnit
- Specified by:
removeGatewayProcessingUnitin interfaceInternalGatewayProcessingUnits
-
getAdmin
Description copied from interface:AdminAwareReturns theAdminassociated with this element.- Specified by:
getAdminin interfaceAdminAware
-
getSize
public int getSize()Description copied from interface:GatewayProcessingUnitsReturns the number of currently deployedGatewayProcessingUnits.- Specified by:
getSizein interfaceGatewayProcessingUnits
-
isEmpty
public boolean isEmpty()Description copied from interface:GatewayProcessingUnitsReturnstrueif there are no currently deployed processing units.- Specified by:
isEmptyin interfaceGatewayProcessingUnits
-
getGatewayProcessingUnits
Description copied from interface:GatewayProcessingUnitsReturns theGatewayProcessingUnits currently deployed.- Specified by:
getGatewayProcessingUnitsin interfaceGatewayProcessingUnits
-
getGatewayProcessingUnit
Description copied from interface:GatewayProcessingUnitsReturns theGatewayProcessingUnitfor the given gateway processing unit name.- Specified by:
getGatewayProcessingUnitin interfaceGatewayProcessingUnits
-
getGatewayProcessingUnitAdded
Description copied from interface:GatewayProcessingUnitsReturns an event manager allowing to registerGatewayProcessingUnitAddedEventListeners.- Specified by:
getGatewayProcessingUnitAddedin interfaceGatewayProcessingUnits
-
getGatewayProcessingUnitRemoved
Description copied from interface:GatewayProcessingUnitsReturns an event manager allowing to registerGatewayProcessingUnitRemovedEventListeners.- Specified by:
getGatewayProcessingUnitRemovedin interfaceGatewayProcessingUnits
-
addLifecycleListener
Description copied from interface:GatewayProcessingUnitsAllows to add aGatewayProcessingUnitLifecycleEventListener.- Specified by:
addLifecycleListenerin interfaceGatewayProcessingUnits
-
removeLifecycleListener
Description copied from interface:GatewayProcessingUnitsAllows to remove aGatewayProcessingUnitLifecycleEventListener.- Specified by:
removeLifecycleListenerin interfaceGatewayProcessingUnits
-
iterator
- Specified by:
iteratorin interfaceIterable<GatewayProcessingUnit>
-
getNames
Description copied from interface:GatewayProcessingUnitsReturns a map ofGatewayProcessingUnitkeyed by their respective names.- Specified by:
getNamesin interfaceGatewayProcessingUnits
-
waitFor
Description copied from interface:GatewayProcessingUnitsWaits indefinitely till the gateway processing unit is identified as deployed. Returns theGatewayProcessingUnit.- Specified by:
waitForin interfaceGatewayProcessingUnits
-
waitFor
public GatewayProcessingUnit waitFor(String gatewaysProcessingUnitName, long timeout, TimeUnit timeUnit) Description copied from interface:GatewayProcessingUnitsWaits 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.- Specified by:
waitForin interfaceGatewayProcessingUnits
-