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
ModifierConstructorDescriptionprivate
-
Method Summary
Modifier and TypeMethodDescriptionlong
Map<byte[],
byte[]> boolean
isSerial()
boolean
Use remote wal dir to decide whether a peer is sync replication peerboolean
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
toString()
unmodifiableTableCFsMap
(Map<TableName, List<String>> tableCFsMap)
-
Field Details
-
clusterKey
-
replicationEndpointImpl
-
peerData
-
configuration
-
tableCFsMap
-
namespaces
-
replicateAllUserTables
-
excludeTableCFsMap
-
excludeNamespaces
-
bandwidth
-
serial
-
remoteWALDir
-
-
Constructor Details
-
ReplicationPeerConfig
-
-
Method Details
-
unmodifiableTableCFsMap
-
getClusterKey
-
getReplicationEndpointImpl
-
getPeerData
-
getConfiguration
-
getTableCFsMap
-
getNamespaces
-
getBandwidth
-
replicateAllUserTables
-
getExcludeTableCFsMap
-
getExcludeNamespaces
-
getRemoteWALDir
-
isSyncReplication
Use remote wal dir to decide whether a peer is sync replication peer -
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.
-