@InterfaceAudience.Public public interface ReplicationPeerConfigBuilder
ReplicationPeerConfig
.Modifier and Type | Method and Description |
---|---|
ReplicationPeerConfig |
build()
Builds the configuration object from the current state of
this . |
ReplicationPeerConfigBuilder |
setBandwidth(long bandwidth)
Sets the speed, in bytes per second, for any one RegionServer to replicate data to the peer.
|
ReplicationPeerConfigBuilder |
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
|
ReplicationPeerConfigBuilder |
setExcludeNamespaces(Set<String> namespaces)
Sets the collection of namespaces which should not be replicated when all user tables are
configured to be replicated.
|
ReplicationPeerConfigBuilder |
setExcludeTableCFsMap(Map<TableName,List<String>> tableCFsMap)
Sets the mapping of table name to column families which should not be replicated.
|
ReplicationPeerConfigBuilder |
setNamespaces(Set<String> namespaces)
Sets a unique collection of HBase namespaces that should be replicated to this peer.
|
ReplicationPeerConfigBuilder |
setReplicateAllUserTables(boolean replicateAllUserTables)
Configures HBase to replicate all user tables (not system tables) to the peer.
|
ReplicationPeerConfigBuilder |
setReplicationEndpointImpl(String replicationEndpointImpl)
Sets the ReplicationEndpoint plugin class for this peer.
|
ReplicationPeerConfigBuilder |
setSerial(boolean serial)
Sets whether we should preserve order when replicating, i.e, serial replication.
|
ReplicationPeerConfigBuilder |
setTableCFsMap(Map<TableName,List<String>> tableCFsMap)
Sets an explicit map of tables and column families in those tables that should be replicated to
the given peer.
|
ReplicationPeerConfigBuilder setClusterKey(String clusterKey)
ReplicationPeerConfigBuilder setReplicationEndpointImpl(String replicationEndpointImpl)
replicationEndpointImpl
- a class implementing ReplicationEndpointReplicationPeerConfigBuilder setTableCFsMap(Map<TableName,List<String>> tableCFsMap)
setReplicateAllUserTables(boolean)
to replicate all tables to a
peer.tableCFsMap
- A map from tableName to column family names. An empty collection can be
passed to indicate replicating all column families.this
setReplicateAllUserTables(boolean)
ReplicationPeerConfigBuilder setNamespaces(Set<String> namespaces)
namespaces
- A set of namespaces to be replicated to this peer.this
ReplicationPeerConfigBuilder setBandwidth(long bandwidth)
bandwidth
- Bytes per secondthis
.ReplicationPeerConfigBuilder setReplicateAllUserTables(boolean replicateAllUserTables)
true
.replicateAllUserTables
- True if all user tables should be replicated, else false.this
ReplicationPeerConfigBuilder setExcludeTableCFsMap(Map<TableName,List<String>> tableCFsMap)
setTableCFsMap(Map)
. Invoking this method is
only relevant when all user tables are being replicated.tableCFsMap
- A mapping of table names to column families which should not be replicated.
An empty list of column families implies all families for the table.this
.ReplicationPeerConfigBuilder setExcludeNamespaces(Set<String> namespaces)
setNamespaces(Set)
. Invoking this method is only relevant when all user tables are
being replicated.namespaces
- A set of namespaces whose tables should not be replicated.this
ReplicationPeerConfigBuilder setSerial(boolean serial)
Sets whether we should preserve order when replicating, i.e, serial replication.
Default false
.
serial
- true
means preserve order, otherwise false
.this
ReplicationPeerConfig build()
this
.ReplicationPeerConfig
instance.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.