@InterfaceAudience.Private public class MetaRegionLocationCache extends ZooKeeperListener
watcher| Constructor and Description |
|---|
MetaRegionLocationCache(ZooKeeperWatcher zkWatcher) |
| Modifier and Type | Method and Description |
|---|---|
List<HRegionLocation> |
getMetaRegionLocations() |
void |
nodeChildrenChanged(String path)
Called when an existing node has a child node added or removed.
|
void |
nodeCreated(String path)
Called when a new node has been created.
|
void |
nodeDataChanged(String path)
Called when an existing node has changed data.
|
void |
nodeDeleted(String path)
Called when a node has been deleted
|
getWatcherpublic MetaRegionLocationCache(ZooKeeperWatcher zkWatcher)
public List<HRegionLocation> getMetaRegionLocations()
public void nodeCreated(String path)
ZooKeeperListenernodeCreated in class ZooKeeperListenerpath - full path of the new nodepublic void nodeDeleted(String path)
ZooKeeperListenernodeDeleted in class ZooKeeperListenerpath - full path of the deleted nodepublic void nodeDataChanged(String path)
ZooKeeperListenernodeDataChanged in class ZooKeeperListenerpath - full path of the updated nodepublic void nodeChildrenChanged(String path)
ZooKeeperListenernodeChildrenChanged in class ZooKeeperListenerpath - full path of the node whose children have changedCopyright © 2007–2022 The Apache Software Foundation. All rights reserved.