@InterfaceAudience.LimitedPrivate(value="Tools") public abstract class HBaseServiceHandler extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CLEANUP_INTERVAL |
protected org.apache.hadoop.conf.Configuration |
conf |
protected ConnectionCache |
connectionCache |
static String |
MAX_IDLETIME |
protected ThriftMetrics |
metrics |
Constructor and Description |
---|
HBaseServiceHandler(org.apache.hadoop.conf.Configuration c,
UserProvider userProvider) |
Modifier and Type | Method and Description |
---|---|
protected Admin |
getAdmin()
Obtain HBaseAdmin.
|
protected Table |
getTable(byte[] tableName)
Creates and returns a Table instance from a given table name.
|
protected Table |
getTable(ByteBuffer tableName) |
void |
initMetrics(ThriftMetrics metrics) |
void |
setEffectiveUser(String effectiveUser) |
public static final String CLEANUP_INTERVAL
public static final String MAX_IDLETIME
protected org.apache.hadoop.conf.Configuration conf
protected final ConnectionCache connectionCache
protected ThriftMetrics metrics
public HBaseServiceHandler(org.apache.hadoop.conf.Configuration c, UserProvider userProvider) throws IOException
IOException
public void initMetrics(ThriftMetrics metrics)
public void setEffectiveUser(String effectiveUser)
protected Admin getAdmin() throws IOException
IOException
protected Table getTable(byte[] tableName) throws IOException
tableName
- name of tableIOException
- if getting the table failsprotected Table getTable(ByteBuffer tableName) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.