@InterfaceAudience.Private public class ReplicationPeerImpl extends Object implements ReplicationPeer
ReplicationPeer.PeerState| 构造器和说明 |
|---|
ReplicationPeerImpl(org.apache.hadoop.conf.Configuration conf,
String id,
boolean peerState,
ReplicationPeerConfig peerConfig)
Constructor that takes all the objects required to communicate with the specified peer, except
for the region server addresses.
|
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.hadoop.conf.Configuration |
getConfiguration()
Get the configuration object required to communicate with this peer
|
String |
getId()
Get the identifier of this peer
|
Set<String> |
getNamespaces()
Get replicable namespace set of this peer
|
long |
getPeerBandwidth()
Get the per node bandwidth upper limit for this peer
|
ReplicationPeerConfig |
getPeerConfig()
Get the peer config object
|
ReplicationPeer.PeerState |
getPeerState()
Returns the state of the peer by reading local cache.
|
Map<TableName,List<String>> |
getTableCFs()
Get replicable (table, cf-list) map of this peer
|
void |
registerPeerConfigListener(ReplicationPeerConfigListener listener)
Register a peer config listener to catch the peer config change event.
|
void |
setPeerConfig(ReplicationPeerConfig peerConfig) |
void |
setPeerState(boolean enabled) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisPeerEnabled, trackPeerConfigChangespublic ReplicationPeerImpl(org.apache.hadoop.conf.Configuration conf,
String id,
boolean peerState,
ReplicationPeerConfig peerConfig)
conf - configuration object to this peerid - string representation of this peer's identifierpeerConfig - configuration for the replication peerpublic void setPeerState(boolean enabled)
public void setPeerConfig(ReplicationPeerConfig peerConfig)
public String getId()
getId 在接口中 ReplicationPeerpublic ReplicationPeer.PeerState getPeerState()
ReplicationPeergetPeerState 在接口中 ReplicationPeerpublic ReplicationPeerConfig getPeerConfig()
getPeerConfig 在接口中 ReplicationPeerpublic org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration 在接口中 ReplicationPeerpublic Map<TableName,List<String>> getTableCFs()
getTableCFs 在接口中 ReplicationPeerpublic Set<String> getNamespaces()
getNamespaces 在接口中 ReplicationPeerpublic long getPeerBandwidth()
ReplicationPeergetPeerBandwidth 在接口中 ReplicationPeerpublic void registerPeerConfigListener(ReplicationPeerConfigListener listener)
ReplicationPeerregisterPeerConfigListener 在接口中 ReplicationPeerlistener - listener to catch the peer config change event.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.