public class DrSenderConnectionConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DFLT_AWAIT_ACK
Default await acknowledge flag.
|
static DrReceiverLoadBalancingMode |
DFLT_LOAD_BALANCING_MODE
Default receiver hub load balancing policy.
|
Constructor and Description |
---|
DrSenderConnectionConfiguration()
Constructor.
|
DrSenderConnectionConfiguration(DrSenderConnectionConfiguration cfg)
Copying constructor.
|
Modifier and Type | Method and Description |
---|---|
byte |
getDataCenterId()
Gets ID of remote data center.
|
byte[] |
getIgnoredDataCenterIds()
Gets IDs of data centers updates from which will not be replicated to this remote data center.
|
DrReceiverLoadBalancingMode |
getLoadBalancingMode()
Gets remote receiver hub load balancing policy.
|
String |
getLocalOutboundAddress()
Gets local outbound address.
|
String |
getLocalOutboundHost()
Deprecated.
|
String[] |
getReceiverAddresses()
Gets addresses of remote receiver hubs.
|
DrSenderStore |
getStore()
Gets data store used for this connection.
|
boolean |
isAwaitAcknowledge()
Gets await acknowledge flag.
|
DrSenderConnectionConfiguration |
setAwaitAcknowledge(boolean awaitAck)
Sets await acknowledge flag.
|
DrSenderConnectionConfiguration |
setDataCenterId(byte dataCenterId)
Sets ID of remote data center.
|
DrSenderConnectionConfiguration |
setIgnoredDataCenterIds(byte... ignoreDataCenterIds)
Sets ignored data center IDs.
|
DrSenderConnectionConfiguration |
setLoadBalancingMode(DrReceiverLoadBalancingMode loadBalancingMode)
Sets remote receiver hub load balancing policy.
|
DrSenderConnectionConfiguration |
setLocalOutboundAddress(String locOutboundAddr)
Sets local outbound address.
|
DrSenderConnectionConfiguration |
setLocalOutboundHost(String locOutboundHost)
Deprecated.
|
DrSenderConnectionConfiguration |
setReceiverAddresses(String... rcvAddrs)
Sets addresses of remote receiver hubs.
|
DrSenderConnectionConfiguration |
setStore(DrSenderStore store)
Sets store for connection.
|
String |
toString() |
public static final DrReceiverLoadBalancingMode DFLT_LOAD_BALANCING_MODE
public static final boolean DFLT_AWAIT_ACK
public DrSenderConnectionConfiguration()
public DrSenderConnectionConfiguration(DrSenderConnectionConfiguration cfg)
cfg
- Configuration to copy.public byte getDataCenterId()
public DrSenderConnectionConfiguration setDataCenterId(byte dataCenterId)
getDataCenterId()
for more information.dataCenterId
- ID of remote data center.this
for chaining.public String[] getReceiverAddresses()
public DrSenderConnectionConfiguration setReceiverAddresses(String... rcvAddrs)
getReceiverAddresses()
for more information.rcvAddrs
- Addresses of remote receiver hubs.this
for chaining.@Deprecated public String getLocalOutboundHost()
getLocalOutboundAddress()
By default is set to null
meaning that sender hub will be bound to the same interface as the grid itself
(see IgniteConfiguration.getLocalHost()
)
@Deprecated public DrSenderConnectionConfiguration setLocalOutboundHost(String locOutboundHost)
setLocalOutboundAddress(String)
getLocalOutboundHost()
for more information.locOutboundHost
- Local network interface name form with remote data center is reachable.this
for chaining.public String getLocalOutboundAddress()
By default is set to null
meaning that sender hub will be bound to
the same interface as the grid itself and random port will be used.
Can be set in format:
null
- default behavior. (See above).
public DrSenderConnectionConfiguration setLocalOutboundAddress(String locOutboundAddr)
See getLocalOutboundAddress()
for more information.
locOutboundAddr
- Local outbound address.this
for chaining.public DrReceiverLoadBalancingMode getLoadBalancingMode()
Defaults to DFLT_LOAD_BALANCING_MODE
.
public DrSenderConnectionConfiguration setLoadBalancingMode(DrReceiverLoadBalancingMode loadBalancingMode)
getLoadBalancingMode()
for more information.loadBalancingMode
- Remote receiver hub load balancing policy.this
for chaining.public byte[] getIgnoredDataCenterIds()
A
replicates to B
, B
replicates to C
, and C
replicates back to A
, then on C
you should specify that updates from A
should be ignored to avoid a cycle.public DrSenderConnectionConfiguration setIgnoredDataCenterIds(byte... ignoreDataCenterIds)
getIgnoredDataCenterIds()
ignoreDataCenterIds
- Ignored data center IDs.this
for chaining.public boolean isAwaitAcknowledge()
true
sender hub will await acknowledge for each replication
batch sent to a receiver hub thus ensuring that data is stored in remote topology. If set to false
,
sender hub will not wait for that acknowledge. This will increase throughput at a cost of reliability.
Defaults to DFLT_AWAIT_ACK
.
public DrSenderConnectionConfiguration setAwaitAcknowledge(boolean awaitAck)
isAwaitAcknowledge()
awaitAck
- Await acknowledge flag.this
for chaining.public DrSenderStore getStore()
May be set single store for sender hub with DrSenderConfiguration.setStore(DrSenderStore)
or
per specific connection setStore(DrSenderStore)
. In the second case, when
remote datacenter (DC) is unreachable, only one store (that is configured to keep data for that specific DC)
could overflow. That means replication for other DCs will keep going.
Note, if set store per connection only DrSenderStoreOverflowMode.REMOVE_OLDEST
overflow
mode available for stores.
Default is null
.
public DrSenderConnectionConfiguration setStore(DrSenderStore store)
getStore()
store
- Data store for this connection. Passing null
will clear previously set store.this
for chaining.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024