org.apache.hadoop.hbase.client
Class HConnectionManager
java.lang.Object
org.apache.hadoop.hbase.client.HConnectionManager
- All Implemented Interfaces:
- HConstants
- Direct Known Subclasses:
- ServerConnectionManager
public class HConnectionManager
- extends Object
- implements HConstants
A non-instantiable class that manages connections to multiple tables in
multiple HBase instances.
Used by HTable
and HBaseAdmin
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_HISTORIAN, COLUMN_FAMILY_HISTORIAN_STR, COLUMN_FAMILY_STR, 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, DEFAULT_SIZE_RESERVATION_BLOCK, EMPTY_BYTE_ARRAY, EMPTY_END_ROW, EMPTY_START_ROW, FILE_SYSTEM_VERSION, FOREVER, HBASE_CLIENT_RETRIES_NUMBER_KEY, HBASE_DIR, HREGION_COMPACTIONDIR_NAME, HREGION_LOGDIR_NAME, HREGION_OLDLOGFILE_NAME, IN_MEMORY, LAST_ROW, LATEST_TIMESTAMP, MAJOR_COMPACTION_PERIOD, MASTER_ADDRESS, MAX_ROW_LENGTH, META_ROW_DELIMITER, META_TABLE_NAME, MODIFY_CLOSE_REGION, MODIFY_TABLE_COMPACT, MODIFY_TABLE_FLUSH, MODIFY_TABLE_MAJOR_COMPACT, MODIFY_TABLE_SET_HTD, MODIFY_TABLE_SPLIT, NAME, NINES, REGION_SERVER_CLASS, REGION_SERVER_IMPL, REGIONSERVER_ADDRESS, RETRY_BACKOFF, ROOT_TABLE_NAME, THREAD_WAKE_FREQUENCY, UTF8_ENCODING, VERSION_FILE_NAME, VERSIONS, WEEK_IN_SECONDS, ZERO_L, ZEROES |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HConnectionManager
protected HConnectionManager()
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
deleteConnectionInfo
public static void deleteConnectionInfo(HBaseConfiguration conf,
boolean stopProxy)
- Delete connection information for the instance specified by configuration
- Parameters:
conf
- stopProxy
-
Copyright © 2008 The Apache Software Foundation