@InterfaceAudience.Private public class MetaLocationSyncer extends ClientZKSyncer
Modifier and Type | Field and Description |
---|---|
private int |
metaReplicaCount |
watcher
Constructor and Description |
---|
MetaLocationSyncer(ZKWatcher watcher,
ZKWatcher clientZkWatcher,
Server server) |
Modifier and Type | Method and Description |
---|---|
protected Set<String> |
getPathsToWatch()
Returns the zk path(s) to watch
|
void |
setMetaReplicaCount(int replicaCount) |
protected boolean |
validate(String path)
Validate whether a znode path is watched by us
|
nodeCreated, nodeDataChanged, nodeDeleted, refreshWatchingList, start
getWatcher, nodeChildrenChanged
private volatile int metaReplicaCount
public MetaLocationSyncer(ZKWatcher watcher, ZKWatcher clientZkWatcher, Server server)
protected boolean validate(String path)
ClientZKSyncer
validate
in class ClientZKSyncer
path
- the path to validateprotected Set<String> getPathsToWatch()
ClientZKSyncer
getPathsToWatch
in class ClientZKSyncer
public void setMetaReplicaCount(int replicaCount)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.