Class MetaLocationSyncer
java.lang.Object
org.apache.hadoop.hbase.zookeeper.ZKListener
org.apache.hadoop.hbase.master.zksyncer.ClientZKSyncer
org.apache.hadoop.hbase.master.zksyncer.MetaLocationSyncer
Tracks the meta region locations on server ZK cluster and synchronize them to client ZK cluster
if changed
-
Field Summary
FieldsFields inherited from class org.apache.hadoop.hbase.zookeeper.ZKListener
watcher -
Constructor Summary
ConstructorsConstructorDescriptionMetaLocationSyncer(ZKWatcher watcher, ZKWatcher clientZkWatcher, Server server) -
Method Summary
Modifier and TypeMethodDescriptionReturns the zk path(s) to watchvoidsetMetaReplicaCount(int replicaCount) protected booleanValidate whether a znode path is watched by usMethods inherited from class org.apache.hadoop.hbase.master.zksyncer.ClientZKSyncer
nodeCreated, nodeDataChanged, nodeDeleted, refreshWatchingList, startMethods inherited from class org.apache.hadoop.hbase.zookeeper.ZKListener
getWatcher, nodeChildrenChanged
-
Field Details
-
metaReplicaCount
-
-
Constructor Details
-
MetaLocationSyncer
-
-
Method Details
-
validate
Description copied from class:ClientZKSyncerValidate whether a znode path is watched by us- Specified by:
validatein classClientZKSyncer- Parameters:
path- the path to validate- Returns:
- true if the znode is watched by us
-
getPathsToWatch
Description copied from class:ClientZKSyncerReturns the zk path(s) to watch- Specified by:
getPathsToWatchin classClientZKSyncer
-
setMetaReplicaCount
-