Class ReplicationPeerConfig
java.lang.Object
org.apache.hadoop.hbase.replication.ReplicationPeerConfig
A configuration for the replication peer cluster.
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionDeprecated.as release of 2.0.0, and it will be removed in 3.0.0.private
-
Method Summary
Modifier and TypeMethodDescriptionlong
Map<byte[],
byte[]> boolean
isSerial()
boolean
needToReplicate
(TableName table) Decide whether the table need replicate to the peer clusterboolean
needToReplicate
(TableName table, byte[] family) Decide whether the passed family of the table need replicate to the peer cluster according to this peer config.static ReplicationPeerConfigBuilder
static ReplicationPeerConfigBuilder
newBuilder
(ReplicationPeerConfig peerConfig) boolean
setBandwidth
(long bandwidth) Deprecated.as release of 2.0.0, and it will be removed in 3.0.0.setClusterKey
(String clusterKey) Deprecated.as release of 2.0.0, and it will be removed in 3.0.0.setExcludeNamespaces
(Set<String> namespaces) Deprecated.as release of 2.0.0, and it will be removed in 3.0.0.setExcludeTableCFsMap
(Map<TableName, ? extends Collection<String>> tableCFsMap) Deprecated.as release of 2.0.0, and it will be removed in 3.0.0.setNamespaces
(Set<String> namespaces) Deprecated.as release of 2.0.0, and it will be removed in 3.0.0.setReplicateAllUserTables
(boolean replicateAllUserTables) Deprecated.as release of 2.0.0, and it will be removed in 3.0.0.setReplicationEndpointImpl
(String replicationEndpointImpl) Deprecated.as release of 2.0.0, and it will be removed in 3.0.0.setTableCFsMap
(Map<TableName, ? extends Collection<String>> tableCFsMap) Deprecated.as release of 2.0.0, and it will be removed in 3.0.0.toString()
unmodifiableTableCFsMap
(Map<TableName, List<String>> tableCFsMap)
-
Field Details
-
clusterKey
-
replicationEndpointImpl
-
peerData
-
configuration
-
tableCFsMap
-
namespaces
-
replicateAllUserTables
-
excludeTableCFsMap
-
excludeNamespaces
-
bandwidth
-
serial
-
-
Constructor Details
-
ReplicationPeerConfig
-
ReplicationPeerConfig
Deprecated.as release of 2.0.0, and it will be removed in 3.0.0. UseReplicationPeerConfigBuilder
to create new ReplicationPeerConfig.
-
-
Method Details
-
unmodifiableTableCFsMap
-
setClusterKey
Deprecated.as release of 2.0.0, and it will be removed in 3.0.0. UseReplicationPeerConfigBuilder.setClusterKey(String)
instead.Set the clusterKey which is the concatenation of the slave cluster's: hbase.zookeeper.quorum:hbase.zookeeper.property.clientPort:zookeeper.znode.parent -
setReplicationEndpointImpl
Deprecated.as release of 2.0.0, and it will be removed in 3.0.0. UseReplicationPeerConfigBuilder.setReplicationEndpointImpl(String)
instead.Sets the ReplicationEndpoint plugin class for this peer.- Parameters:
replicationEndpointImpl
- a class implementing ReplicationEndpoint
-
getClusterKey
-
getReplicationEndpointImpl
-
getPeerData
-
getConfiguration
-
getTableCFsMap
-
setTableCFsMap
@Deprecated public ReplicationPeerConfig setTableCFsMap(Map<TableName, ? extends Collection<String>> tableCFsMap) Deprecated.as release of 2.0.0, and it will be removed in 3.0.0. UseReplicationPeerConfigBuilder.setTableCFsMap(Map)
instead. -
getNamespaces
-
setNamespaces
Deprecated.as release of 2.0.0, and it will be removed in 3.0.0. UseReplicationPeerConfigBuilder.setNamespaces(Set)
instead. -
getBandwidth
-
setBandwidth
Deprecated.as release of 2.0.0, and it will be removed in 3.0.0. UseReplicationPeerConfigBuilder.setBandwidth(long)
instead. -
replicateAllUserTables
-
setReplicateAllUserTables
Deprecated.as release of 2.0.0, and it will be removed in 3.0.0. UseReplicationPeerConfigBuilder.setReplicateAllUserTables(boolean)
instead. -
getExcludeTableCFsMap
-
setExcludeTableCFsMap
@Deprecated public ReplicationPeerConfig setExcludeTableCFsMap(Map<TableName, ? extends Collection<String>> tableCFsMap) Deprecated.as release of 2.0.0, and it will be removed in 3.0.0. UseReplicationPeerConfigBuilder.setExcludeTableCFsMap(Map)
instead. -
getExcludeNamespaces
-
setExcludeNamespaces
Deprecated.as release of 2.0.0, and it will be removed in 3.0.0. UseReplicationPeerConfigBuilder.setExcludeNamespaces(Set)
instead. -
newBuilder
-
isSerial
-
newBuilder
-
toString
-
needToReplicate
Decide whether the table need replicate to the peer cluster- Parameters:
table
- name of the table- Returns:
- true if the table need replicate to the peer cluster
-
needToReplicate
Decide whether the passed family of the table need replicate to the peer cluster according to this peer config.- Parameters:
table
- name of the tablefamily
- family name- Returns:
- true if (the family of) the table need replicate to the peer cluster. If passed family is null, return true if any CFs of the table need replicate; If passed family is not null, return true if the passed family need replicate.
-