public class GridDrSenderHubConnectionConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DFLT_AWAIT_ACK
Default await acknowledge flag.
|
static GridDrReceiverHubLoadBalancingMode |
DFLT_RCV_HUB_LOAD_BALANCING_MODE
Default receiver hub load balancing policy.
|
| Constructor and Description |
|---|
GridDrSenderHubConnectionConfiguration()
Constructor.
|
GridDrSenderHubConnectionConfiguration(GridDrSenderHubConnectionConfiguration 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.
|
String |
getLocalOutboundHost()
Gets local network interface name form with remote data center is reachable.
|
String[] |
getReceiverHubAddresses()
Gets addresses of remote receiver hubs.
|
GridDrReceiverHubLoadBalancingMode |
getReceiverHubLoadBalancingMode()
Gets remote receiver hub load balancing policy.
|
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 |
setLocalOutboundHost(String locOutboundHost)
Sets local network interface name form with remote data center is reachable.
|
void |
setReceiverHubAddresses(String... rcvHubAddrs)
Sets addresses of remote receiver hubs.
|
void |
setReceiverHubLoadBalancingMode(GridDrReceiverHubLoadBalancingMode rcvHubLoadBalancingMode)
Sets remote receiver hub load balancing policy.
|
String |
toString() |
public static final GridDrReceiverHubLoadBalancingMode DFLT_RCV_HUB_LOAD_BALANCING_MODE
public static final boolean DFLT_AWAIT_ACK
public GridDrSenderHubConnectionConfiguration()
public GridDrSenderHubConnectionConfiguration(GridDrSenderHubConnectionConfiguration 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[] getReceiverHubAddresses()
public void setReceiverHubAddresses(String... rcvHubAddrs)
getReceiverHubAddresses() for more information.rcvHubAddrs - Addresses of remote receiver hubs.public String getLocalOutboundHost()
By default is set to null meaning that sender hub will be bound to the same interface as the grid itself
(see GridConfiguration.getLocalHost())
public void setLocalOutboundHost(String locOutboundHost)
getLocalOutboundHost()
for more information.locOutboundHost - Local network interface name form with remote data center is reachable.public GridDrReceiverHubLoadBalancingMode getReceiverHubLoadBalancingMode()
Defaults to DFLT_RCV_HUB_LOAD_BALANCING_MODE.
public void setReceiverHubLoadBalancingMode(GridDrReceiverHubLoadBalancingMode rcvHubLoadBalancingMode)
getReceiverHubLoadBalancingMode()
for more information.rcvHubLoadBalancingMode - 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.Copyright © 2014. All rights reserved.