org.apache.hadoop.hbase
Class ZKNamespaceManager
java.lang.Object
org.apache.hadoop.hbase.zookeeper.ZooKeeperListener
org.apache.hadoop.hbase.ZKNamespaceManager
@InterfaceAudience.Private
public class ZKNamespaceManager
- extends ZooKeeperListener
Class servers two purposes:
1. Broadcast NamespaceDescriptor information via ZK
(Done by the Master)
2. Consume broadcasted NamespaceDescriptor changes
(Done by the RegionServers)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZKNamespaceManager
public ZKNamespaceManager(ZooKeeperWatcher zkw)
throws IOException
- Throws:
IOException
start
public void start()
throws IOException
- Throws:
IOException
get
public NamespaceDescriptor get(String name)
update
public void update(NamespaceDescriptor ns)
throws IOException
- Throws:
IOException
remove
public void remove(String name)
throws IOException
- Throws:
IOException
list
public NavigableSet<NamespaceDescriptor> list()
throws IOException
- Throws:
IOException
nodeCreated
public void nodeCreated(String path)
- Overrides:
nodeCreated
in class ZooKeeperListener
nodeDeleted
public void nodeDeleted(String path)
- Overrides:
nodeDeleted
in class ZooKeeperListener
nodeDataChanged
public void nodeDataChanged(String path)
- Overrides:
nodeDataChanged
in class ZooKeeperListener
nodeChildrenChanged
public void nodeChildrenChanged(String path)
- Overrides:
nodeChildrenChanged
in class ZooKeeperListener
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.