public class RootLocationEditor extends Object
-ROOT-
in ZooKeeper.Constructor and Description |
---|
RootLocationEditor() |
Modifier and Type | Method and Description |
---|---|
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. |
public static void deleteRootLocation(ZooKeeperWatcher zookeeper) throws org.apache.zookeeper.KeeperException
-ROOT-
in ZooKeeper.zookeeper
- zookeeper referenceorg.apache.zookeeper.KeeperException
- unexpected zookeeper exceptionpublic static void setRootLocation(ZooKeeperWatcher zookeeper, ServerName location) throws org.apache.zookeeper.KeeperException
-ROOT-
in ZooKeeper to the
specified server address.zookeeper
- zookeeper referencelocation
- The server hosting -ROOT-
org.apache.zookeeper.KeeperException
- unexpected zookeeper exceptionCopyright © 2014 The Apache Software Foundation. All Rights Reserved.