public interface GatewayProcessingUnits extends Iterable<GatewayProcessingUnit>, AdminAware
GatewayProcessingUnit
s.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
GatewayProcessingUnitAddedEventListener s. |
GatewayProcessingUnitRemovedEventManager |
getGatewayProcessingUnitRemoved()
Returns an event manager allowing to register
GatewayProcessingUnitRemovedEventListener s. |
GatewayProcessingUnit[] |
getGatewayProcessingUnits()
Returns the
GatewayProcessingUnit s currently deployed. |
Map<String,GatewayProcessingUnit> |
getNames()
Returns a map of
GatewayProcessingUnit keyed by their
respective names. |
int |
getSize()
Returns the number of currently deployed
GatewayProcessingUnit s. |
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, spliterator
getAdmin
int getSize()
GatewayProcessingUnit
s.boolean isEmpty()
true
if there are no currently deployed processing units.GatewayProcessingUnit[] getGatewayProcessingUnits()
GatewayProcessingUnit
s 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()
GatewayProcessingUnitAddedEventListener
s.GatewayProcessingUnitRemovedEventManager getGatewayProcessingUnitRemoved()
GatewayProcessingUnitRemovedEventListener
s.void addLifecycleListener(GatewayProcessingUnitLifecycleEventListener eventListener)
GatewayProcessingUnitLifecycleEventListener
.void removeLifecycleListener(GatewayProcessingUnitLifecycleEventListener eventListener)
GatewayProcessingUnitLifecycleEventListener
.Copyright © GigaSpaces.