@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 |
|---|---|
Admin |
getAdmin()
Caller doesn't close the admin afterwards.
|
String |
getEffectiveUser()
Get the current thread local effective user
|
RegionLocator |
getRegionLocator(byte[] tableName)
Retrieve a regionLocator for the table.
|
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
IOExceptionpublic void setEffectiveUser(String user)
public String getEffectiveUser()
public Admin getAdmin() throws IOException
IOExceptionpublic HTableInterface getTable(String tableName) throws IOException
IOExceptionpublic RegionLocator getRegionLocator(byte[] tableName) throws IOException
IOExceptionCopyright © 2015 The Apache Software Foundation. All Rights Reserved.