@InterfaceAudience.Private public class RegionServerAddressTracker extends ZKListener
Modifier and Type | Field and Description |
---|---|
private Abortable |
abortable |
private static org.slf4j.Logger |
LOG |
private List<ServerName> |
regionServers |
watcher
Constructor and Description |
---|
RegionServerAddressTracker(ZKWatcher watcher,
Abortable abortable) |
Modifier and Type | Method and Description |
---|---|
List<ServerName> |
getRegionServers() |
private void |
loadRegionServerList() |
void |
nodeChildrenChanged(String path)
Called when an existing node has a child node added or removed.
|
getWatcher, nodeCreated, nodeDataChanged, nodeDeleted
private static final org.slf4j.Logger LOG
private volatile List<ServerName> regionServers
public RegionServerAddressTracker(ZKWatcher watcher, Abortable abortable)
private void loadRegionServerList()
public void nodeChildrenChanged(String path)
ZKListener
nodeChildrenChanged
in class ZKListener
path
- full path of the node whose children have changedpublic List<ServerName> getRegionServers()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.