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.
|
void |
setAwaitAcknowledge(boolean awaitAck)
Sets await acknowledge flag.
|
void |
setDataCenterId(byte dataCenterId)
Sets ID of remote data center.
|
void |
setIgnoredDataCenterIds(byte... ignoreDataCenterIds)
Sets ignored data center IDs.
|
void |
setLoadBalancingMode(DrReceiverLoadBalancingMode loadBalancingMode)
Sets remote receiver hub load balancing policy.
|
void |
setLocalOutboundAddress(String locOutboundAddr)
Sets local outbound address.
|
void |
setLocalOutboundHost(String locOutboundHost)
Deprecated.
|
void |
setReceiverAddresses(String... rcvAddrs)
Sets addresses of remote receiver hubs.
|
void |
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 void setDataCenterId(byte dataCenterId)
getDataCenterId() for more information.dataCenterId - ID of remote data center.public String[] getReceiverAddresses()
public void setReceiverAddresses(String... rcvAddrs)
getReceiverAddresses() for more information.rcvAddrs - Addresses of remote receiver hubs.@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 void setLocalOutboundHost(String locOutboundHost)
setLocalOutboundAddress(String)getLocalOutboundHost()
for more information.locOutboundHost - Local network interface name form with remote data center is reachable.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 void setLocalOutboundAddress(String locOutboundAddr)
See getLocalOutboundAddress() for more information.
locOutboundAddr - Local outbound address.public DrReceiverLoadBalancingMode getLoadBalancingMode()
Defaults to DFLT_LOAD_BALANCING_MODE.
public void setLoadBalancingMode(DrReceiverLoadBalancingMode loadBalancingMode)
getLoadBalancingMode()
for more information.loadBalancingMode - Remote receiver hub load balancing policy.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 void setIgnoredDataCenterIds(byte... ignoreDataCenterIds)
getIgnoredDataCenterIds()ignoreDataCenterIds - Ignored data center IDs.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 void setAwaitAcknowledge(boolean awaitAck)
isAwaitAcknowledge()awaitAck - Await acknowledge flag.@Nullable 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 void setStore(@Nullable
DrSenderStore store)
getStore()store - Data store for this connection.
GridGain Fabric : ver. 7.8.12 Release Date : October 2 2017