org.apache.hadoop.hbase.catalog
Class RootLocationEditor
java.lang.Object
org.apache.hadoop.hbase.catalog.RootLocationEditor
public class RootLocationEditor
- extends Object
Makes changes to the location of -ROOT- in ZooKeeper.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RootLocationEditor
public RootLocationEditor()
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 referencelocation - The server hosting -ROOT-
- Throws:
org.apache.zookeeper.KeeperException - unexpected zookeeper exception
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.