|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.client.HConnectionManager
public class HConnectionManager
A non-instantiable class that manages connections to multiple tables in
multiple HBase instances.
Used by HTable and HBaseAdmin
| Nested Class Summary | |
|---|---|
static class |
HConnectionManager.ClientZKWatcher
This class is responsible to handle connection and reconnection to a zookeeper quorum. |
| Constructor Summary | |
|---|---|
protected |
HConnectionManager()
|
| Method Summary | |
|---|---|
static void |
deleteAllConnections(boolean stopProxy)
Delete information for all connections. |
static void |
deleteConnectionInfo(org.apache.hadoop.conf.Configuration conf,
boolean stopProxy)
Delete connection information for the instance specified by configuration |
static HConnectionManager.ClientZKWatcher |
getClientZooKeeperWatcher(org.apache.hadoop.conf.Configuration conf)
Get a watcher of a zookeeper connection for a given quorum address. |
static HConnection |
getConnection(org.apache.hadoop.conf.Configuration conf)
Get the connection object for the instance specified by the configuration If no current connection exists, create a new connection for that instance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected HConnectionManager()
| Method Detail |
|---|
public static HConnection getConnection(org.apache.hadoop.conf.Configuration conf)
conf - configuration
public static void deleteConnectionInfo(org.apache.hadoop.conf.Configuration conf,
boolean stopProxy)
conf - configurationstopProxy - stop the proxy as wellpublic static void deleteAllConnections(boolean stopProxy)
stopProxy - stop the proxy as well
public static HConnectionManager.ClientZKWatcher getClientZooKeeperWatcher(org.apache.hadoop.conf.Configuration conf)
throws IOException
conf - configuration
IOException - if a remote or network exception occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||