@InterfaceAudience.Private public class ConnectionCache extends Object
Constructor and Description |
---|
ConnectionCache(org.apache.hadoop.conf.Configuration conf,
UserProvider userProvider,
int cleanInterval,
int maxIdleTime) |
Modifier and Type | Method and Description |
---|---|
HBaseAdmin |
getAdmin()
Caller doesn't close the admin afterwards.
|
String |
getEffectiveUser()
Get the current thread local effective user
|
HTableInterface |
getTable(String tableName)
Caller closes the table afterwards.
|
void |
setEffectiveUser(String user)
Set the current thread local effective user
|
public ConnectionCache(org.apache.hadoop.conf.Configuration conf, UserProvider userProvider, int cleanInterval, int maxIdleTime) throws IOException
IOException
public void setEffectiveUser(String user)
public String getEffectiveUser()
public HBaseAdmin getAdmin() throws IOException
IOException
public HTableInterface getTable(String tableName) throws IOException
IOException
Copyright © 2014 The Apache Software Foundation. All rights reserved.