org.apache.hadoop.hbase.zookeeper
Class MetaNodeTracker

java.lang.Object
  extended by org.apache.hadoop.hbase.zookeeper.ZooKeeperListener
      extended by org.apache.hadoop.hbase.zookeeper.ZooKeeperNodeTracker
          extended by org.apache.hadoop.hbase.zookeeper.MetaNodeTracker

public class MetaNodeTracker
extends ZooKeeperNodeTracker

Tracks the unassigned zookeeper node used by the META table. A callback is made into the passed CatalogTracker when .META. completes a new assignment.

If META is already assigned when instantiating this class, you will not receive any notification for that assignment. You will receive a notification after META has been successfully assigned to a new location.


Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.zookeeper.ZooKeeperNodeTracker
abortable, node
 
Fields inherited from class org.apache.hadoop.hbase.zookeeper.ZooKeeperListener
watcher
 
Constructor Summary
MetaNodeTracker(ZooKeeperWatcher watcher, CatalogTracker catalogTracker, Abortable abortable)
          Creates a meta node tracker.
 
Method Summary
 void nodeDeleted(String path)
          Called when a node has been deleted
 
Methods inherited from class org.apache.hadoop.hbase.zookeeper.ZooKeeperNodeTracker
blockUntilAvailable, blockUntilAvailable, getData, getNode, nodeCreated, nodeDataChanged, start, stop
 
Methods inherited from class org.apache.hadoop.hbase.zookeeper.ZooKeeperListener
nodeChildrenChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaNodeTracker

public MetaNodeTracker(ZooKeeperWatcher watcher,
                       CatalogTracker catalogTracker,
                       Abortable abortable)
Creates a meta node tracker.

Parameters:
watcher -
abortable -
Method Detail

nodeDeleted

public void nodeDeleted(String path)
Description copied from class: ZooKeeperListener
Called when a node has been deleted

Overrides:
nodeDeleted in class ZooKeeperNodeTracker
Parameters:
path - full path of the deleted node


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.