Package org.openspaces.admin.gateway
Interface Gateway
- All Superinterfaces:
Iterable<GatewayProcessingUnit>
- All Known Implementing Classes:
DefaultGateway
A gateway is a composition of one or more of
GatewayProcessingUnits, and it is in charge
of replication between different Spaces. e.g. Replication
between two sites over WAN.- Since:
- 8.0.4
- Author:
- eitany
-
Method Summary
Modifier and TypeMethodDescriptiongetDelegator(String targetGatewayName) Returns a gateway delegator which has a target gateway with the given name.getGatewayProcessingUnit(String processingUnitName) Returns the gateway processing unit for the given processing unit name.Returns all the currently deployedGatewayProcessingUnits.getName()Returns the name which is used by the other gateways to locate this gateway.getNames()Returns a map ofGatewayProcessingUnitkeyed by their respective names.Returns a gateway sink which has a source gateway with the given name.getSinkSource(String sourceGatewayName) Returns a sink source gateway with the given name.intgetSize()Returns the number of deployedGatewayProcessingUnitwhich are part of this gateway.booleanisEmpty()Returnstrueif there are no deployedGatewayProcessingUnitwhich are part of this gateway;falseotherwise.booleanwaitFor(int numberOfGatewayProcessingUnits) Waits for the default timeout specified byAdmin.setDefaultTimeout(long, TimeUnit)till at least the provided number of Gateway Processing Unit Instances are up.booleanWaits for the specified timeout (in time interval) till at least the provided number of Gateway Processing Unit Instances are up.waitForDelegator(String targetGatewayName) Waits for the default timeout specified byAdmin.setDefaultTimeout(long, TimeUnit)till the gateway delegator with the given target gateway name is identified as deployed.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.waitForGatewayProcessingUnit(String processingUnitName) Waits for the default timeout specified byAdmin.setDefaultTimeout(long, TimeUnit)till the processing unit of this gateway is identified as deployed.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.waitForSink(String sourceGatewayName) Waits for the default timeout specified byAdmin.setDefaultTimeout(long, TimeUnit)till the gateway sink with the given source gateway name is identified as deployed.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.waitForSinkSource(String sourceGatewayName) Waits for the default timeout specified byAdmin.setDefaultTimeout(long, TimeUnit)till the gateway sink with the given source gateway name is identified as deployed.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.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getGatewayProcessingUnits
GatewayProcessingUnit[] getGatewayProcessingUnits()Returns all the currently deployedGatewayProcessingUnits. -
getName
String getName()Returns the name which is used by the other gateways to locate this gateway. -
waitFor
boolean waitFor(int numberOfGatewayProcessingUnits) Waits for the default timeout specified byAdmin.setDefaultTimeout(long, TimeUnit)till at least the provided number of Gateway Processing Unit Instances are up. Returnstrueif the specified number of gateway processing units are deployed,falseotherwise; -
waitFor
Waits for the specified timeout (in time interval) till at least the provided number of Gateway Processing Unit Instances are up. Returnstrueif the specified number of gateway processing units are deployed within the specified timeout,falseotherwise; -
waitForGatewayProcessingUnit
Waits for the default timeout specified byAdmin.setDefaultTimeout(long, TimeUnit)till the processing unit of this gateway is identified as deployed. Returnnullif the processing unit is not deployed within the specified timeout. -
waitForGatewayProcessingUnit
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. Returnnullif the processing unit is not deployed within the specified timeout. -
getGatewayProcessingUnit
Returns the gateway processing unit for the given processing unit name. Returnsnullif the gateway processing unit is not currently discovered. -
getNames
Map<String,GatewayProcessingUnit> getNames()Returns a map ofGatewayProcessingUnitkeyed by their respective names. -
getSink
Returns a gateway sink which has a source gateway with the given name. Returnsnullif the gateway sink is not currently discovered or this gateway has no sink with source gateway with the given name. -
waitForSink
Waits for the default timeout specified byAdmin.setDefaultTimeout(long, TimeUnit)till the gateway sink with the given source gateway name is identified as deployed. Returnnullif the sink is not deployed within the specified timeout. -
waitForSink
Waits for the specified timeout (in time interval) till the gateway sink with the given source gateway name is identified as deployed. Returnnullif the sink is not deployed within the specified timeout. -
getSinkSource
Returns a sink source gateway with the given name. Returnsnullif the sink source is not currently discovered or this gateway has no sink with source gateway with the given name. -
waitForSinkSource
Waits for the default timeout specified byAdmin.setDefaultTimeout(long, TimeUnit)till the gateway sink with the given source gateway name is identified as deployed. Returnsnullif the sink source is not deployed within the specified timeout. -
waitForSinkSource
Waits for the specified timeout (in time interval) till the gateway sink with the given source gateway name is identified as deployed. Returnsnullif the sink source is not deployed within the specified timeout. -
getDelegator
Returns a gateway delegator which has a target gateway with the given name. Returnsnullif the gateway delegator is not currently discovered or this gateway has no target with target gateway with the given name. -
waitForDelegator
Waits for the default timeout specified byAdmin.setDefaultTimeout(long, TimeUnit)till the gateway delegator with the given target gateway name is identified as deployed. Returnsnullif the delegator target is not deployed within the specified timeout. -
waitForDelegator
Waits for the specified timeout (in time interval) till the gateway delegator with the given target gateway name is identified as deployed. Returnsnullif the delegator target is not deployed within the specified timeout. -
getSize
int getSize()Returns the number of deployedGatewayProcessingUnitwhich are part of this gateway. -
isEmpty
boolean isEmpty()Returnstrueif there are no deployedGatewayProcessingUnitwhich are part of this gateway;falseotherwise.
-