@InterfaceAudience.Public @InterfaceStability.Evolving public class ReplicationPeerConfig extends Object
Modifier and Type | Field and Description |
---|---|
static String |
HBASE_REPLICATION_PEER_BASE_CONFIG |
Constructor and Description |
---|
ReplicationPeerConfig() |
Modifier and Type | Method and Description |
---|---|
void |
addBasePeerConfigsIfNotPresent(org.apache.hadoop.conf.Configuration conf)
Helper method to add base peer configs from Configuration to ReplicationPeerConfig
if not present in latter.
|
long |
getBandwidth() |
String |
getClusterKey() |
Map<String,String> |
getConfiguration() |
Map<byte[],byte[]> |
getPeerData() |
String |
getReplicationEndpointImpl() |
Map<TableName,List<String>> |
getTableCFsMap() |
ReplicationPeerConfig |
setBandwidth(long bandwidth) |
ReplicationPeerConfig |
setClusterKey(String clusterKey)
Set the clusterKey which is the concatenation of the slave cluster's:
hbase.zookeeper.quorum:hbase.zookeeper.property.clientPort:zookeeper.znode.parent
|
ReplicationPeerConfig |
setReplicationEndpointImpl(String replicationEndpointImpl)
Sets the ReplicationEndpoint plugin class for this peer.
|
void |
setTableCFsMap(Map<TableName,? extends Collection<String>> tableCFsMap) |
String |
toString() |
public static final String HBASE_REPLICATION_PEER_BASE_CONFIG
public ReplicationPeerConfig setClusterKey(String clusterKey)
public ReplicationPeerConfig setReplicationEndpointImpl(String replicationEndpointImpl)
replicationEndpointImpl
- a class implementing ReplicationEndpointpublic String getClusterKey()
public String getReplicationEndpointImpl()
public Map<byte[],byte[]> getPeerData()
public void setTableCFsMap(Map<TableName,? extends Collection<String>> tableCFsMap)
public long getBandwidth()
public ReplicationPeerConfig setBandwidth(long bandwidth)
public void addBasePeerConfigsIfNotPresent(org.apache.hadoop.conf.Configuration conf)
ReplicationPeerConfig
with peer configs
provided as property hbase.replication.peer.base.configs in hbase configuration.
Expected format for this hbase configuration is "k1=v1;k2=v2,v2_1". Original value
of conf is retained if already present in ReplicationPeerConfig.conf
- ConfigurationCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.