Class MasterAddressSyncer
java.lang.Object
org.apache.hadoop.hbase.zookeeper.ZKListener
org.apache.hadoop.hbase.master.zksyncer.ClientZKSyncer
org.apache.hadoop.hbase.master.zksyncer.MasterAddressSyncer
Tracks the active master address on server ZK cluster and synchronize them to client ZK cluster
if changed
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.zookeeper.ZKListener
watcher
-
Constructor Summary
ConstructorDescriptionMasterAddressSyncer
(ZKWatcher watcher, ZKWatcher clientZkWatcher, Server server) -
Method Summary
Modifier and TypeMethodDescriptionReturns the zk path(s) to watchprotected boolean
Validate whether a znode path is watched by usMethods inherited from class org.apache.hadoop.hbase.master.zksyncer.ClientZKSyncer
nodeCreated, nodeDataChanged, nodeDeleted, refreshWatchingList, start
Methods inherited from class org.apache.hadoop.hbase.zookeeper.ZKListener
getWatcher, nodeChildrenChanged
-
Field Details
-
masterAddressZNode
-
-
Constructor Details
-
MasterAddressSyncer
-
-
Method Details
-
validate
Description copied from class:ClientZKSyncer
Validate whether a znode path is watched by us- Specified by:
validate
in classClientZKSyncer
- Parameters:
path
- the path to validate- Returns:
- true if the znode is watched by us
-
getPathsToWatch
Description copied from class:ClientZKSyncer
Returns the zk path(s) to watch- Specified by:
getPathsToWatch
in classClientZKSyncer
-