@InterfaceAudience.Public
public interface ReplicationPeerConfigBuilder
ReplicationPeerConfig
.Modifier and Type | Method and Description |
---|---|
ReplicationPeerConfig |
build()
Builds the configuration object from the current state of
this . |
default ReplicationPeerConfigBuilder |
putAllConfiguration(Map<String,String> configuration)
Adds all of the provided "raw" configuration entries to
this . |
default ReplicationPeerConfigBuilder |
putAllPeerData(Map<byte[],byte[]> peerData)
Sets all of the provided serialized peer configuration data.
|
ReplicationPeerConfigBuilder |
putConfiguration(String key,
String value)
Sets a "raw" configuration property for this replication peer.
|
ReplicationPeerConfigBuilder |
putPeerData(byte[] key,
byte[] value)
Sets the serialized peer configuration data
|
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 ReplicationEndpoint@InterfaceAudience.Private ReplicationPeerConfigBuilder putConfiguration(String key, String value)
key
- Configuration property keyvalue
- Configuration property valuethis
@InterfaceAudience.Private default ReplicationPeerConfigBuilder putAllConfiguration(Map<String,String> configuration)
this
.configuration
- A collection of raw configuration entriesthis
@InterfaceAudience.Private ReplicationPeerConfigBuilder putPeerData(byte[] key, byte[] value)
this
@InterfaceAudience.Private default ReplicationPeerConfigBuilder putAllPeerData(Map<byte[],byte[]> peerData)
this
ReplicationPeerConfigBuilder 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–2019 Cloudera. All rights reserved.