@InterfaceAudience.Private public class ZKNamespaceManager extends ZooKeeperListener
watcher| Constructor and Description |
|---|
ZKNamespaceManager(ZooKeeperWatcher zkw) |
| Modifier and Type | Method and Description |
|---|---|
NamespaceDescriptor |
get(String name) |
NavigableSet<NamespaceDescriptor> |
list() |
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
|
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)
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 © 2014 The Apache Software Foundation. All rights reserved.