public interface GatewayProcessingUnits extends Iterable<GatewayProcessingUnit>, AdminAware
GatewayProcessingUnits.| Modifier and Type | Method and Description |
|---|---|
void |
addLifecycleListener(GatewayProcessingUnitLifecycleEventListener eventListener)
Allows to add a
GatewayProcessingUnitLifecycleEventListener. |
GatewayProcessingUnit |
getGatewayProcessingUnit(String uid)
Returns the
GatewayProcessingUnit for the given gateway
processing unit name. |
GatewayProcessingUnitAddedEventManager |
getGatewayProcessingUnitAdded()
Returns an event manager allowing to register
GatewayProcessingUnitAddedEventListeners. |
GatewayProcessingUnitRemovedEventManager |
getGatewayProcessingUnitRemoved()
Returns an event manager allowing to register
GatewayProcessingUnitRemovedEventListeners. |
GatewayProcessingUnit[] |
getGatewayProcessingUnits()
Returns the
GatewayProcessingUnits currently deployed. |
Map<String,GatewayProcessingUnit> |
getNames()
Returns a map of
GatewayProcessingUnit keyed by their
respective names. |
int |
getSize()
Returns the number of currently deployed
GatewayProcessingUnits. |
boolean |
isEmpty()
Returns
true if there are no currently deployed processing units. |
void |
removeLifecycleListener(GatewayProcessingUnitLifecycleEventListener eventListener)
Allows to remove a
GatewayProcessingUnitLifecycleEventListener. |
GatewayProcessingUnit |
waitFor(String gatewayProcessingUnitName)
Waits indefinitely till the gateway processing unit is identified as deployed.
|
GatewayProcessingUnit |
waitFor(String gatewaysProcessingUnitName,
long timeout,
TimeUnit timeUnit)
Waits for the specified timeout (in time interval) till the processing unit is identified as
deployed.
|
forEach, iterator, spliteratorgetAdminint getSize()
GatewayProcessingUnits.boolean isEmpty()
true if there are no currently deployed processing units.GatewayProcessingUnit[] getGatewayProcessingUnits()
GatewayProcessingUnits currently deployed.GatewayProcessingUnit getGatewayProcessingUnit(String uid)
GatewayProcessingUnit for the given gateway
processing unit name.Map<String,GatewayProcessingUnit> getNames()
GatewayProcessingUnit keyed by their
respective names.GatewayProcessingUnit waitFor(String gatewayProcessingUnitName)
GatewayProcessingUnit.GatewayProcessingUnit waitFor(String gatewaysProcessingUnitName, long timeout, TimeUnit timeUnit)
GatewayProcessingUnit. Return
null if the gateway processing unit is not deployed within the specified
timeout.GatewayProcessingUnitAddedEventManager getGatewayProcessingUnitAdded()
GatewayProcessingUnitAddedEventListeners.GatewayProcessingUnitRemovedEventManager getGatewayProcessingUnitRemoved()
GatewayProcessingUnitRemovedEventListeners.void addLifecycleListener(GatewayProcessingUnitLifecycleEventListener eventListener)
GatewayProcessingUnitLifecycleEventListener.void removeLifecycleListener(GatewayProcessingUnitLifecycleEventListener eventListener)
GatewayProcessingUnitLifecycleEventListener.Copyright © GigaSpaces.