|
||||||||||
| 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. |
| Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.HConstants |
|---|
HConstants.Modify |
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
protected |
HConnectionManager()
|
| Method Summary | |
|---|---|
static void |
deleteAllConnections(boolean stopProxy)
Delete information for all connections. |
static void |
deleteConnectionInfo(HBaseConfiguration conf,
boolean stopProxy)
Delete connection information for the instance specified by configuration |
static HConnectionManager.ClientZKWatcher |
getClientZooKeeperWatcher(HBaseConfiguration conf)
Get a watcher of a zookeeper connection for a given quorum address. |
static HConnection |
getConnection(HBaseConfiguration 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(HBaseConfiguration conf)
conf -
public static void deleteConnectionInfo(HBaseConfiguration conf,
boolean stopProxy)
conf - stopProxy - public static void deleteAllConnections(boolean stopProxy)
stopProxy -
public static HConnectionManager.ClientZKWatcher getClientZooKeeperWatcher(HBaseConfiguration conf)
throws IOException
conf -
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||