@InterfaceAudience.Private public class ReplicationPeerManager extends Object
Used to add/remove a replication peer.
| Modifier and Type | Method and Description |
|---|---|
void |
addPeer(String peerId,
org.apache.hadoop.hbase.replication.ReplicationPeerConfig peerConfig,
boolean enabled) |
static ReplicationPeerManager |
create(org.apache.hadoop.hbase.zookeeper.ZKWatcher zk,
org.apache.hadoop.conf.Configuration conf) |
void |
disablePeer(String peerId) |
void |
enablePeer(String peerId) |
Optional<org.apache.hadoop.hbase.replication.ReplicationPeerConfig> |
getPeerConfig(String peerId) |
org.apache.hadoop.hbase.replication.ReplicationQueueStorage |
getQueueStorage() |
List<String> |
getSerialPeerIdsBelongsTo(org.apache.hadoop.hbase.TableName tableName) |
List<org.apache.hadoop.hbase.replication.ReplicationPeerDescription> |
listPeers(Pattern pattern) |
void |
removePeer(String peerId) |
void |
updatePeerConfig(String peerId,
org.apache.hadoop.hbase.replication.ReplicationPeerConfig peerConfig) |
public void addPeer(String peerId, org.apache.hadoop.hbase.replication.ReplicationPeerConfig peerConfig, boolean enabled) throws org.apache.hadoop.hbase.replication.ReplicationException
org.apache.hadoop.hbase.replication.ReplicationExceptionpublic void removePeer(String peerId) throws org.apache.hadoop.hbase.replication.ReplicationException
org.apache.hadoop.hbase.replication.ReplicationExceptionpublic void enablePeer(String peerId) throws org.apache.hadoop.hbase.replication.ReplicationException
org.apache.hadoop.hbase.replication.ReplicationExceptionpublic void disablePeer(String peerId) throws org.apache.hadoop.hbase.replication.ReplicationException
org.apache.hadoop.hbase.replication.ReplicationExceptionpublic void updatePeerConfig(String peerId, org.apache.hadoop.hbase.replication.ReplicationPeerConfig peerConfig) throws org.apache.hadoop.hbase.replication.ReplicationException
org.apache.hadoop.hbase.replication.ReplicationExceptionpublic List<org.apache.hadoop.hbase.replication.ReplicationPeerDescription> listPeers(Pattern pattern)
public Optional<org.apache.hadoop.hbase.replication.ReplicationPeerConfig> getPeerConfig(String peerId)
public List<String> getSerialPeerIdsBelongsTo(org.apache.hadoop.hbase.TableName tableName)
public org.apache.hadoop.hbase.replication.ReplicationQueueStorage getQueueStorage()
public static ReplicationPeerManager create(org.apache.hadoop.hbase.zookeeper.ZKWatcher zk, org.apache.hadoop.conf.Configuration conf) throws org.apache.hadoop.hbase.replication.ReplicationException
org.apache.hadoop.hbase.replication.ReplicationExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.