public class DefaultGatewayProcessingUnits extends Object implements InternalGatewayProcessingUnits
Constructor and Description |
---|
DefaultGatewayProcessingUnits(DefaultAdmin admin) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public DefaultGatewayProcessingUnits(DefaultAdmin admin)
public void addGatewayProcessingUnit(GatewayProcessingUnit gatewayProcessingUnit)
addGatewayProcessingUnit
in interface InternalGatewayProcessingUnits
public GatewayProcessingUnit removeGatewayProcessingUnit(String uid)
removeGatewayProcessingUnit
in interface InternalGatewayProcessingUnits
public Admin getAdmin()
AdminAware
Admin
associated with this element.getAdmin
in interface AdminAware
public int getSize()
GatewayProcessingUnits
GatewayProcessingUnit
s.getSize
in interface GatewayProcessingUnits
public boolean isEmpty()
GatewayProcessingUnits
true
if there are no currently deployed processing units.isEmpty
in interface GatewayProcessingUnits
public GatewayProcessingUnit[] getGatewayProcessingUnits()
GatewayProcessingUnits
GatewayProcessingUnit
s currently deployed.getGatewayProcessingUnits
in interface GatewayProcessingUnits
public GatewayProcessingUnit getGatewayProcessingUnit(String uid)
GatewayProcessingUnits
GatewayProcessingUnit
for the given gateway
processing unit name.getGatewayProcessingUnit
in interface GatewayProcessingUnits
public GatewayProcessingUnitAddedEventManager getGatewayProcessingUnitAdded()
GatewayProcessingUnits
GatewayProcessingUnitAddedEventListener
s.getGatewayProcessingUnitAdded
in interface GatewayProcessingUnits
public GatewayProcessingUnitRemovedEventManager getGatewayProcessingUnitRemoved()
GatewayProcessingUnits
GatewayProcessingUnitRemovedEventListener
s.getGatewayProcessingUnitRemoved
in interface GatewayProcessingUnits
public void addLifecycleListener(GatewayProcessingUnitLifecycleEventListener eventListener)
GatewayProcessingUnits
GatewayProcessingUnitLifecycleEventListener
.addLifecycleListener
in interface GatewayProcessingUnits
public void removeLifecycleListener(GatewayProcessingUnitLifecycleEventListener eventListener)
GatewayProcessingUnits
GatewayProcessingUnitLifecycleEventListener
.removeLifecycleListener
in interface GatewayProcessingUnits
public Iterator<GatewayProcessingUnit> iterator()
iterator
in interface Iterable<GatewayProcessingUnit>
public Map<String,GatewayProcessingUnit> getNames()
GatewayProcessingUnits
GatewayProcessingUnit
keyed by their
respective names.getNames
in interface GatewayProcessingUnits
public GatewayProcessingUnit waitFor(String gatewayProcessingUnitName)
GatewayProcessingUnits
GatewayProcessingUnit
.waitFor
in interface GatewayProcessingUnits
public GatewayProcessingUnit waitFor(String gatewaysProcessingUnitName, long timeout, TimeUnit timeUnit)
GatewayProcessingUnits
GatewayProcessingUnit
. Return
null
if the gateway processing unit is not deployed within the specified
timeout.waitFor
in interface GatewayProcessingUnits
Copyright © GigaSpaces.