|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.replication.ReplicationPeer
public class ReplicationPeer
This class acts as a wrapper for all the objects used to identify and communicate with remote peers. Everything needs to be created for objects of this class as it doesn't encapsulate any specific functionality e.g. it's a container class.
Constructor Summary | |
---|---|
ReplicationPeer(org.apache.hadoop.conf.Configuration conf,
String key,
String id,
ZooKeeperWatcher zkw)
Constructor that takes all the objects required to communicate with the specified peer, except for the region server addresses. |
Method Summary | |
---|---|
String |
getClusterKey()
Get the cluster key of that peer |
org.apache.hadoop.conf.Configuration |
getConfiguration()
Get the configuration object required to communicate with this peer |
String |
getId()
Get the identifier of this peer |
AtomicBoolean |
getPeerEnabled()
Get the state of this peer |
List<HServerAddress> |
getRegionServers()
Get a list of all the addresses of all the region servers for this peer cluster |
ZooKeeperWatcher |
getZkw()
Get the ZK connection to this peer |
void |
setRegionServers(List<HServerAddress> regionServers)
Set the list of region servers for that peer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReplicationPeer(org.apache.hadoop.conf.Configuration conf, String key, String id, ZooKeeperWatcher zkw)
conf
- configuration object to this peerkey
- cluster key used to locate the peerid
- string representation of this peer's identifierzkw
- zookeeper connection to the peerMethod Detail |
---|
public String getClusterKey()
public AtomicBoolean getPeerEnabled()
public List<HServerAddress> getRegionServers()
public void setRegionServers(List<HServerAddress> regionServers)
regionServers
- list of addresses for the region serverspublic ZooKeeperWatcher getZkw()
public String getId()
public org.apache.hadoop.conf.Configuration getConfiguration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |