@InterfaceAudience.Private public final class ReplicationUtils extends Object
Modifier | Constructor and Description |
---|---|
private |
ReplicationUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
contains(ReplicationPeerConfig peerConfig,
TableName tableName)
Deprecated.
Will be removed in HBase 3. Use
ReplicationPeerConfig.needToReplicate(TableName) instead. |
static int |
getAdaptiveTimeout(int initialValue,
int retries)
Get the adaptive timeout value when performing a retry
|
static org.apache.hadoop.conf.Configuration |
getPeerClusterConfiguration(ReplicationPeerConfig peerConfig,
org.apache.hadoop.conf.Configuration baseConf) |
private static boolean |
isCollectionEqual(Collection<String> c1,
Collection<String> c2) |
static boolean |
isNamespacesAndTableCFsEqual(ReplicationPeerConfig rpc1,
ReplicationPeerConfig rpc2) |
private static boolean |
isNamespacesEqual(Set<String> ns1,
Set<String> ns2) |
static boolean |
isReplicationForBulkLoadDataEnabled(org.apache.hadoop.conf.Configuration c) |
private static boolean |
isTableCFsEqual(Map<TableName,List<String>> tableCFs1,
Map<TableName,List<String>> tableCFs2) |
static void |
removeAllQueues(ReplicationQueueStorage queueStorage,
String peerId) |
private ReplicationUtils()
public static org.apache.hadoop.conf.Configuration getPeerClusterConfiguration(ReplicationPeerConfig peerConfig, org.apache.hadoop.conf.Configuration baseConf) throws ReplicationException
ReplicationException
public static void removeAllQueues(ReplicationQueueStorage queueStorage, String peerId) throws ReplicationException
ReplicationException
private static boolean isCollectionEqual(Collection<String> c1, Collection<String> c2)
private static boolean isNamespacesEqual(Set<String> ns1, Set<String> ns2)
private static boolean isTableCFsEqual(Map<TableName,List<String>> tableCFs1, Map<TableName,List<String>> tableCFs2)
public static boolean isNamespacesAndTableCFsEqual(ReplicationPeerConfig rpc1, ReplicationPeerConfig rpc2)
public static boolean isReplicationForBulkLoadDataEnabled(org.apache.hadoop.conf.Configuration c)
c
- Configuration to look at@Deprecated public static boolean contains(ReplicationPeerConfig peerConfig, TableName tableName)
ReplicationPeerConfig.needToReplicate(TableName)
instead.peerConfig
- configuration for the replication peer clustertableName
- name of the tablepublic static int getAdaptiveTimeout(int initialValue, int retries)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.