org.apache.hadoop.hbase
Class HConnectionManager
java.lang.Object
org.apache.hadoop.hbase.HConnectionManager
- All Implemented Interfaces:
- HConstants
public class HConnectionManager
- extends Object
- implements HConstants
A non-instantiable class that manages connections to multiple tables in
multiple HBase instances
Fields inherited from interface org.apache.hadoop.hbase.HConstants |
ALL_META_COLUMNS, ALL_VERSIONS, COL_REGIONINFO, COL_REGIONINFO_ARRAY, COL_SERVER, COL_SPLITA, COL_SPLITB, COL_STARTCODE, COLUMN_FAMILY, COLUMN_FAMILY_ARRAY, COLUMN_FAMILY_STR, DEFAULT_HBASE_DIR, DEFAULT_HOST, DEFAULT_MASTER_ADDRESS, DEFAULT_MASTER_INFOPORT, DEFAULT_MASTER_PORT, DEFAULT_MAX_FILE_SIZE, DEFAULT_REGION_SERVER_CLASS, DEFAULT_REGIONSERVER_ADDRESS, DEFAULT_REGIONSERVER_INFOPORT, EMPTY_START_ROW, EMPTY_TEXT, FILE_SYSTEM_VERSION, HBASE_DIR, HREGION_LOGDIR_NAME, HREGION_OLDLOGFILE_NAME, LATEST_TIMESTAMP, MASTER_ADDRESS, META_TABLE_NAME, REGION_SERVER_CLASS, REGIONSERVER_ADDRESS, ROOT_TABLE_NAME, THREAD_WAKE_FREQUENCY, UTF8_ENCODING, VERSION_FILE_NAME |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getConnection
public 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
- Parameters:
conf
-
- Returns:
- HConnection object for the instance specified by the configuration
deleteConnection
public static void deleteConnection(HBaseConfiguration conf)
- Delete connection information for the instance specified by the configuration
- Parameters:
conf
-
Copyright © 2006 The Apache Software Foundation