@InterfaceAudience.Private public class ZKNamespaceManager extends ZooKeeperListener
watcher| 构造器和说明 |
|---|
ZKNamespaceManager(ZooKeeperWatcher zkw) |
| 限定符和类型 | 方法和说明 |
|---|---|
NamespaceDescriptor |
get(String name) |
NavigableSet<NamespaceDescriptor> |
list() |
void |
nodeChildrenChanged(String path) |
void |
nodeCreated(String path) |
void |
nodeDataChanged(String path) |
void |
nodeDeleted(String path) |
void |
remove(String name) |
void |
start() |
void |
update(NamespaceDescriptor ns) |
getWatcherpublic ZKNamespaceManager(ZooKeeperWatcher zkw) throws IOException
IOExceptionpublic void start()
throws IOException
IOExceptionpublic NamespaceDescriptor get(String name)
public void update(NamespaceDescriptor ns) throws IOException
IOExceptionpublic void remove(String name) throws IOException
IOExceptionpublic NavigableSet<NamespaceDescriptor> list() throws IOException
IOExceptionpublic void nodeCreated(String path)
nodeCreated 在类中 ZooKeeperListenerpublic void nodeDeleted(String path)
nodeDeleted 在类中 ZooKeeperListenerpublic void nodeDataChanged(String path)
nodeDataChanged 在类中 ZooKeeperListenerpublic void nodeChildrenChanged(String path)
nodeChildrenChanged 在类中 ZooKeeperListenerCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.