public class ZooKeeperHiveHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ZooKeeperHiveHelper.ZooKeeperHiveHelperBuilder
ZooKeeperHiveHelperBuilder.
|
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
static String |
ZOOKEEPER_PATH_SEPARATOR |
| Constructor and Description |
|---|
ZooKeeperHiveHelper(ZooKeeperHiveHelper.ZooKeeperHiveHelperBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
addServerInstanceToZooKeeper(String znodePathPrefix,
String znodeData,
org.apache.kyuubi.shaded.curator.framework.api.ACLProvider zooKeeperAclProvider,
ZKDeRegisterWatcher watcher)
Adds a server instance to ZooKeeper as a znode.
|
static ZooKeeperHiveHelper.ZooKeeperHiveHelperBuilder |
builder() |
void |
deregisterZnode() |
org.apache.kyuubi.shaded.curator.framework.CuratorFramework |
getNewZookeeperClient() |
org.apache.kyuubi.shaded.curator.framework.CuratorFramework |
getNewZookeeperClient(org.apache.kyuubi.shaded.curator.framework.api.ACLProvider zooKeeperAclProvider) |
org.apache.kyuubi.shaded.curator.framework.CuratorFramework |
getNewZookeeperClient(org.apache.kyuubi.shaded.curator.framework.api.ACLProvider zooKeeperAclProvider,
String nameSpace) |
String |
getQuorumServers()
Get the ensemble server addresses.
|
List<String> |
getServerUris()
This method is supposed to be called from client code connecting to one of the servers managed
by the configured ZooKeeper.
|
boolean |
isDeregisteredWithZooKeeper() |
void |
removeServerInstanceFromZooKeeper() |
org.apache.kyuubi.shaded.curator.framework.CuratorFramework |
startZookeeperClient(org.apache.kyuubi.shaded.curator.framework.api.ACLProvider zooKeeperAclProvider,
boolean addParentNode) |
public static final org.slf4j.Logger LOG
public static final String ZOOKEEPER_PATH_SEPARATOR
public ZooKeeperHiveHelper(ZooKeeperHiveHelper.ZooKeeperHiveHelperBuilder builder)
public static ZooKeeperHiveHelper.ZooKeeperHiveHelperBuilder builder()
public String getQuorumServers()
public void addServerInstanceToZooKeeper(String znodePathPrefix, String znodeData, org.apache.kyuubi.shaded.curator.framework.api.ACLProvider zooKeeperAclProvider, ZKDeRegisterWatcher watcher) throws Exception
Exceptionpublic org.apache.kyuubi.shaded.curator.framework.CuratorFramework startZookeeperClient(org.apache.kyuubi.shaded.curator.framework.api.ACLProvider zooKeeperAclProvider,
boolean addParentNode)
throws Exception
Exceptionpublic org.apache.kyuubi.shaded.curator.framework.CuratorFramework getNewZookeeperClient()
public org.apache.kyuubi.shaded.curator.framework.CuratorFramework getNewZookeeperClient(org.apache.kyuubi.shaded.curator.framework.api.ACLProvider zooKeeperAclProvider)
public org.apache.kyuubi.shaded.curator.framework.CuratorFramework getNewZookeeperClient(org.apache.kyuubi.shaded.curator.framework.api.ACLProvider zooKeeperAclProvider,
String nameSpace)
public void removeServerInstanceFromZooKeeper()
throws Exception
Exceptionpublic void deregisterZnode()
public boolean isDeregisteredWithZooKeeper()
public List<String> getServerUris() throws Exception
ExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.