public interface Gateway extends Iterable<GatewayProcessingUnit>
GatewayProcessingUnits, and it is in charge
 of replication between different Spaces. e.g. Replication
 between two sites over WAN.| Modifier and Type | Method and Description | 
|---|---|
| GatewayDelegator | getDelegator(String targetGatewayName)Returns a gateway delegator which has a target gateway with the given name. | 
| GatewayProcessingUnit | getGatewayProcessingUnit(String processingUnitName)Returns the gateway processing unit for the given processing unit name. | 
| GatewayProcessingUnit[] | getGatewayProcessingUnits()Returns all the currently deployed  GatewayProcessingUnits. | 
| String | getName()Returns the name which is used by the other gateways to locate this gateway. | 
| Map<String,GatewayProcessingUnit> | getNames()Returns a map of  GatewayProcessingUnitkeyed by their respective names. | 
| GatewaySink | getSink(String sourceGatewayName)Returns a gateway sink which has a source gateway with the given name. | 
| GatewaySinkSource | getSinkSource(String sourceGatewayName)Returns a sink source gateway with the given name. | 
| int | getSize()Returns the number of deployed  GatewayProcessingUnitwhich are part of this gateway. | 
| boolean | isEmpty()Returns  trueif there are no deployedGatewayProcessingUnitwhich are
 part of this gateway;false | 
| boolean | waitFor(int numberOfGatewayProcessingUnits)Waits for the default timeout specified by  Admin.setDefaultTimeout(long, TimeUnit)till at least the provided number of Gateway Processing Unit Instances are up. | 
| boolean | waitFor(int numberOfGatewayProcessingUnits,
       long timeout,
       TimeUnit timeUnit)Waits for the specified timeout (in time interval) till at least the provided number of
 Gateway Processing Unit Instances are up. | 
| GatewayDelegator | waitForDelegator(String targetGatewayName)Waits for the default timeout specified by  Admin.setDefaultTimeout(long, TimeUnit)till the gateway delegator with the given target gateway name is identified as deployed. | 
| GatewayDelegator | waitForDelegator(String targetGatewayName,
                long timeout,
                TimeUnit timeUnit)Waits for the specified timeout (in time interval) till the gateway delegator with the given
 target gateway name is identified as deployed. | 
| GatewayProcessingUnit | waitForGatewayProcessingUnit(String processingUnitName)Waits for the default timeout specified by  Admin.setDefaultTimeout(long, TimeUnit)till the processing unit of this gateway is identified as deployed. | 
| GatewayProcessingUnit | waitForGatewayProcessingUnit(String processingUnitName,
                            long timeout,
                            TimeUnit timeUnit)Waits for the specified timeout (in time interval) till the processing unit of this gateway
 is identified as deployed. | 
| GatewaySink | waitForSink(String sourceGatewayName)Waits for the default timeout specified by  Admin.setDefaultTimeout(long, TimeUnit)till the gateway sink with the given source gateway name is identified as deployed. | 
| GatewaySink | waitForSink(String sourceGatewayName,
           long timeout,
           TimeUnit timeUnit)Waits for the specified timeout (in time interval) till the gateway sink with the given
 source gateway name is identified as deployed. | 
| GatewaySinkSource | waitForSinkSource(String sourceGatewayName)Waits for the default timeout specified by  Admin.setDefaultTimeout(long, TimeUnit)till the gateway sink with the given source gateway name is identified as deployed. | 
| GatewaySinkSource | waitForSinkSource(String sourceGatewayName,
                 long timeout,
                 TimeUnit timeUnit)Waits for the specified timeout (in time interval) till the gateway sink with the given
 source gateway name is identified as deployed. | 
forEach, iterator, spliteratorGatewayProcessingUnit[] getGatewayProcessingUnits()
GatewayProcessingUnits.String getName()
boolean waitFor(int numberOfGatewayProcessingUnits)
Admin.setDefaultTimeout(long, TimeUnit)
 till at least the provided number of Gateway Processing Unit Instances are up. Returns
 true if the specified number of gateway processing units are deployed, 
 false otherwise;boolean waitFor(int numberOfGatewayProcessingUnits,
                long timeout,
                TimeUnit timeUnit)
true if the specified number
 of gateway processing units are deployed within the specified timeout, false
 otherwise;GatewayProcessingUnit waitForGatewayProcessingUnit(String processingUnitName)
Admin.setDefaultTimeout(long, TimeUnit)
 till the processing unit of this gateway is identified as deployed. Return null
 if the processing unit is not deployed within the specified timeout.GatewayProcessingUnit waitForGatewayProcessingUnit(String processingUnitName, long timeout, TimeUnit timeUnit)
null if the processing unit is not deployed
 within the specified timeout.GatewayProcessingUnit getGatewayProcessingUnit(String processingUnitName)
null if the gateway processing unit is not currently discovered.Map<String,GatewayProcessingUnit> getNames()
GatewayProcessingUnit keyed by their respective names.GatewaySink getSink(String sourceGatewayName)
null if the gateway sink is not currently discovered or this gateway has no sink
 with source gateway with the given name.GatewaySink waitForSink(String sourceGatewayName)
Admin.setDefaultTimeout(long, TimeUnit)
 till the gateway sink with the given source gateway name is identified as deployed. Return
 null if the sink is not deployed within the specified timeout.GatewaySink waitForSink(String sourceGatewayName, long timeout, TimeUnit timeUnit)
null if the sink is not
 deployed within the specified timeout.GatewaySinkSource getSinkSource(String sourceGatewayName)
null if the sink
 source is not currently discovered or this gateway has no sink with source gateway with the
 given name.GatewaySinkSource waitForSinkSource(String sourceGatewayName)
Admin.setDefaultTimeout(long, TimeUnit)
 till the gateway sink with the given source gateway name is identified as deployed. Returns
 null if the sink source is not deployed within the specified timeout.GatewaySinkSource waitForSinkSource(String sourceGatewayName, long timeout, TimeUnit timeUnit)
null if the sink source
 is not deployed within the specified timeout.GatewayDelegator getDelegator(String targetGatewayName)
null if the gateway delegator is not currently discovered or this gateway has no
 target with target gateway with the given name.GatewayDelegator waitForDelegator(String targetGatewayName)
Admin.setDefaultTimeout(long, TimeUnit)
 till the gateway delegator with the given target gateway name is identified as deployed.
 Returns null if the delegator target is not deployed within the specified
 timeout.GatewayDelegator waitForDelegator(String targetGatewayName, long timeout, TimeUnit timeUnit)
null if the delegator
 target is not deployed within the specified timeout.int getSize()
GatewayProcessingUnit which are part of this gateway.boolean isEmpty()
true if there are no deployed GatewayProcessingUnit which are
 part of this gateway; false otherwise.Copyright © GigaSpaces.