@InterfaceAudience.Public public class ReplicationPeerConfig extends Object
Constructor and Description |
---|
ReplicationPeerConfig()
Deprecated.
as release of 2.0.0, and it will be removed in 3.0.0. Use
ReplicationPeerConfigBuilder to create new ReplicationPeerConfig. |
@Deprecated public ReplicationPeerConfig()
ReplicationPeerConfigBuilder
to create new ReplicationPeerConfig.@Deprecated public ReplicationPeerConfig setClusterKey(String clusterKey)
ReplicationPeerConfigBuilder.setClusterKey(String)
instead.@Deprecated public ReplicationPeerConfig setReplicationEndpointImpl(String replicationEndpointImpl)
ReplicationPeerConfigBuilder.setReplicationEndpointImpl(String)
instead.replicationEndpointImpl
- a class implementing ReplicationEndpointpublic String getClusterKey()
public String getReplicationEndpointImpl()
public Map<byte[],byte[]> getPeerData()
public Map<String,String> getConfiguration()
public Map<TableName,List<String>> getTableCFsMap()
@Deprecated public ReplicationPeerConfig setTableCFsMap(Map<TableName,? extends Collection<String>> tableCFsMap)
ReplicationPeerConfigBuilder.setTableCFsMap(Map)
instead.public Set<String> getNamespaces()
@Deprecated public ReplicationPeerConfig setNamespaces(Set<String> namespaces)
ReplicationPeerConfigBuilder.setNamespaces(Set)
instead.public long getBandwidth()
@Deprecated public ReplicationPeerConfig setBandwidth(long bandwidth)
ReplicationPeerConfigBuilder.setBandwidth(long)
instead.public boolean replicateAllUserTables()
@Deprecated public ReplicationPeerConfig setReplicateAllUserTables(boolean replicateAllUserTables)
ReplicationPeerConfigBuilder.setReplicateAllUserTables(boolean)
instead.public Map<TableName,List<String>> getExcludeTableCFsMap()
@Deprecated public ReplicationPeerConfig setExcludeTableCFsMap(Map<TableName,? extends Collection<String>> tableCFsMap)
ReplicationPeerConfigBuilder.setExcludeTableCFsMap(Map)
instead.public Set<String> getExcludeNamespaces()
@Deprecated public ReplicationPeerConfig setExcludeNamespaces(Set<String> namespaces)
ReplicationPeerConfigBuilder.setExcludeNamespaces(Set)
instead.public static ReplicationPeerConfigBuilder newBuilder()
public boolean isSerial()
public static ReplicationPeerConfigBuilder newBuilder(ReplicationPeerConfig peerConfig)
public boolean needToReplicate(TableName table)
table
- name of the tablepublic boolean needToReplicate(TableName table, byte[] family)
table
- name of the tablefamily
- family nameCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.