org.apache.hadoop.hbase.catalog
Class RootLocationEditor

java.lang.Object
  extended by org.apache.hadoop.hbase.catalog.RootLocationEditor

public class RootLocationEditor
extends Object

Makes changes to the location of -ROOT- in ZooKeeper.


Constructor Summary
RootLocationEditor()
           
 
Method Summary
static void deleteRootLocation(ZooKeeperWatcher zookeeper)
          Deletes the location of -ROOT- in ZooKeeper.
static void setRootLocation(ZooKeeperWatcher zookeeper, ServerName location)
          Sets the location of -ROOT- in ZooKeeper to the specified server address.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RootLocationEditor

public RootLocationEditor()
Method Detail

deleteRootLocation

public static void deleteRootLocation(ZooKeeperWatcher zookeeper)
                               throws org.apache.zookeeper.KeeperException
Deletes the location of -ROOT- in ZooKeeper.

Parameters:
zookeeper - zookeeper reference
Throws:
org.apache.zookeeper.KeeperException - unexpected zookeeper exception

setRootLocation

public static void setRootLocation(ZooKeeperWatcher zookeeper,
                                   ServerName location)
                            throws org.apache.zookeeper.KeeperException
Sets the location of -ROOT- in ZooKeeper to the specified server address.

Parameters:
zookeeper - zookeeper reference
location - The server hosting -ROOT-
Throws:
org.apache.zookeeper.KeeperException - unexpected zookeeper exception


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