class ZooKeeperKeepAliveConnection extends ZooKeeperWatcher
HConnection
.
This allows to make it available with a consistent interface. The whole
ZooKeeperWatcher use in HConnection will be then changed to remove the
watcher part.
This class is intended to be used internally by HBase classes; but not by
final user code. Hence it's package protected.abortable, assignmentZNode, backupMasterAddressesZNode, balancerZNode, baseZNode, clusterIdZNode, clusterStateZNode, CREATOR_ALL_AND_WORLD_READABLE, drainingZNode, META_ZNODE_PREFIX, namespaceZNode, recoveringRegionsZNode, rsZNode, saslLatch, splitLogZNode, tableLockZNode, tableZNode
Constructor and Description |
---|
ZooKeeperKeepAliveConnection(org.apache.hadoop.conf.Configuration conf,
String descriptor,
ConnectionManager.HConnectionImplementation conn) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the connection to ZooKeeper.
|
(package private) void |
internalClose() |
abort, checkAndSetZNodeAcls, getBaseZNode, getConfiguration, getListeners, getMasterAddressZNode, getMetaReplicaIdFromZnode, getMetaReplicaNodes, getNumberOfListeners, getQuorum, getRecoverableZooKeeper, getRegionNormalizerZNode, getZNodeForReplica, interruptedException, interruptedExceptionNoThrow, isAborted, isAnyMetaReplicaZnode, isClientReadable, isDefaultMetaReplicaZnode, isSuperUserId, keeperException, prefix, process, reconnectAfterExpiration, registerListener, registerListenerFirst, sync, toString, unregisterAllListeners, unregisterListener
ZooKeeperKeepAliveConnection(org.apache.hadoop.conf.Configuration conf, String descriptor, ConnectionManager.HConnectionImplementation conn) throws IOException
IOException
public void close()
ZooKeeperWatcher
close
in interface Closeable
close
in interface AutoCloseable
close
in class ZooKeeperWatcher
void internalClose()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.