org.apache.hadoop.hbase.master
Class ZKUnassignedWatcher
java.lang.Object
org.apache.hadoop.hbase.master.ZKUnassignedWatcher
- All Implemented Interfaces:
- org.apache.zookeeper.Watcher
public class ZKUnassignedWatcher
- extends Object
- implements org.apache.zookeeper.Watcher
Watches the UNASSIGNED znode in ZK for the master, and handles all events
relating to region transitions.
Nested classes/interfaces inherited from interface org.apache.zookeeper.Watcher |
org.apache.zookeeper.Watcher.Event |
Method Summary |
void |
process(org.apache.zookeeper.WatchedEvent event)
This is the processing loop that gets triggered from the ZooKeeperWrapper. |
static void |
start(org.apache.hadoop.conf.Configuration conf,
HMaster master)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZKUnassignedWatcher
public ZKUnassignedWatcher(org.apache.hadoop.conf.Configuration conf,
HMaster master)
throws IOException
- Throws:
IOException
start
public static void start(org.apache.hadoop.conf.Configuration conf,
HMaster master)
throws IOException
- Throws:
IOException
process
public void process(org.apache.zookeeper.WatchedEvent event)
- This is the processing loop that gets triggered from the ZooKeeperWrapper.
This zookeeper events process function dies the following:
- WATCHES the following events: NodeCreated, NodeDataChanged, NodeChildrenChanged
- IGNORES the following events: None, NodeDeleted
- Specified by:
process
in interface org.apache.zookeeper.Watcher
Copyright © 2010 Apache Software Foundation. All Rights Reserved.