Package org.apache.hadoop.hbase
Class ZKNamespaceManager
java.lang.Object
org.apache.hadoop.hbase.zookeeper.ZKListener
org.apache.hadoop.hbase.ZKNamespaceManager
Class servers two purposes: 1. Broadcast NamespaceDescriptor information via ZK (Done by the
Master) 2. Consume broadcasted NamespaceDescriptor changes (Done by the RegionServers)
-
Field Summary
Modifier and TypeFieldDescriptionprivate final NavigableMap<String,
NamespaceDescriptor> private static final org.slf4j.Logger
private final String
Fields inherited from class org.apache.hadoop.hbase.zookeeper.ZKListener
watcher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
deleteNamespace
(String name) 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 deletedprivate void
refreshNodes
(List<ZKUtil.NodeAndData> nodes) void
void
start()
void
stop()
void
private void
Methods inherited from class org.apache.hadoop.hbase.zookeeper.ZKListener
getWatcher
-
Field Details
-
LOG
-
nsZNode
-
cache
-
-
Constructor Details
-
ZKNamespaceManager
- Throws:
IOException
-
-
Method Details
-
start
- Throws:
IOException
-
stop
- Throws:
IOException
-
get
-
update
- Throws:
IOException
-
remove
- Throws:
IOException
-
list
- Throws:
IOException
-
nodeCreated
Description copied from class:ZKListener
Called when a new node has been created.- Overrides:
nodeCreated
in classZKListener
- Parameters:
path
- full path of the new node
-
nodeDeleted
Description copied from class:ZKListener
Called when a node has been deleted- Overrides:
nodeDeleted
in classZKListener
- Parameters:
path
- full path of the deleted node
-
nodeDataChanged
Description copied from class:ZKListener
Called when an existing node has changed data.- Overrides:
nodeDataChanged
in classZKListener
- Parameters:
path
- full path of the updated node
-
nodeChildrenChanged
Description copied from class:ZKListener
Called when an existing node has a child node added or removed.- Overrides:
nodeChildrenChanged
in classZKListener
- Parameters:
path
- full path of the node whose children have changed
-
deleteNamespace
- Throws:
IOException
-
writeNamespace
- Throws:
IOException
-
refreshNodes
- Throws:
IOException
-