Class DefaultGateway
java.lang.Object
org.openspaces.admin.internal.gateway.DefaultGateway
- All Implemented Interfaces:
Iterable<GatewayProcessingUnit>,Gateway
- Since:
- 8.0.4
- Author:
- eitany
-
Constructor Summary
Constructors -
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.iterator()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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
DefaultGateway
-
-
Method Details
-
iterator
- Specified by:
iteratorin interfaceIterable<GatewayProcessingUnit>
-
getGatewayProcessingUnits
Description copied from interface:GatewayReturns all the currently deployedGatewayProcessingUnits.- Specified by:
getGatewayProcessingUnitsin interfaceGateway
-
getName
Description copied from interface:GatewayReturns the name which is used by the other gateways to locate this gateway. -
waitFor
public boolean waitFor(int numberOfGatewayProcessingUnits) Description copied from interface:GatewayWaits 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
Description copied from interface:GatewayWaits 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
Description copied from interface:GatewayWaits 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.- Specified by:
waitForGatewayProcessingUnitin interfaceGateway
-
waitForGatewayProcessingUnit
public GatewayProcessingUnit waitForGatewayProcessingUnit(String processingUnitName, long timeout, TimeUnit timeUnit) Description copied from interface:GatewayWaits 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.- Specified by:
waitForGatewayProcessingUnitin interfaceGateway
-
getGatewayProcessingUnit
Description copied from interface:GatewayReturns the gateway processing unit for the given processing unit name. Returnsnullif the gateway processing unit is not currently discovered.- Specified by:
getGatewayProcessingUnitin interfaceGateway
-
getNames
Description copied from interface:GatewayReturns a map ofGatewayProcessingUnitkeyed by their respective names. -
getSink
Description copied from interface:GatewayReturns 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
Description copied from interface:GatewayWaits 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.- Specified by:
waitForSinkin interfaceGateway
-
waitForSink
Description copied from interface:GatewayWaits 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.- Specified by:
waitForSinkin interfaceGateway
-
getSinkSource
Description copied from interface:GatewayReturns 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.- Specified by:
getSinkSourcein interfaceGateway
-
waitForSinkSource
Description copied from interface:GatewayWaits 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.- Specified by:
waitForSinkSourcein interfaceGateway
-
waitForSinkSource
public GatewaySinkSource waitForSinkSource(String sourceGatewayName, long timeout, TimeUnit timeUnit) Description copied from interface:GatewayWaits 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.- Specified by:
waitForSinkSourcein interfaceGateway
-
getDelegator
Description copied from interface:GatewayReturns 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.- Specified by:
getDelegatorin interfaceGateway
-
waitForDelegator
Description copied from interface:GatewayWaits 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.- Specified by:
waitForDelegatorin interfaceGateway
-
waitForDelegator
Description copied from interface:GatewayWaits 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.- Specified by:
waitForDelegatorin interfaceGateway
-
getSize
public int getSize()Description copied from interface:GatewayReturns the number of deployedGatewayProcessingUnitwhich are part of this gateway. -
isEmpty
public boolean isEmpty()Description copied from interface:GatewayReturnstrueif there are no deployedGatewayProcessingUnitwhich are part of this gateway;falseotherwise.
-