org.apache.hadoop.hbase.master
Class ZKUnassignedWatcher

java.lang.Object
  extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface org.apache.zookeeper.Watcher
org.apache.zookeeper.Watcher.Event
 
Constructor Summary
ZKUnassignedWatcher(org.apache.hadoop.conf.Configuration conf, HMaster master)
           
 
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
 

Constructor Detail

ZKUnassignedWatcher

public ZKUnassignedWatcher(org.apache.hadoop.conf.Configuration conf,
                           HMaster master)
                    throws IOException
Throws:
IOException
Method Detail

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.