@InterfaceAudience.Private public class ConnectionCache extends Object
| Constructor and Description |
|---|
ConnectionCache(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.security.UserProvider userProvider,
int cleanInterval,
int maxIdleTime) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.hbase.client.Admin |
getAdmin()
Caller doesn't close the admin afterwards.
|
String |
getEffectiveUser()
Get the current thread local effective user
|
org.apache.hadoop.hbase.client.RegionLocator |
getRegionLocator(byte[] tableName)
Retrieve a regionLocator for the table.
|
org.apache.hadoop.hbase.client.Table |
getTable(String tableName)
Caller closes the table afterwards.
|
void |
setEffectiveUser(String user)
Set the current thread local effective user
|
void |
shutdown()
Called when cache is no longer needed so that it can perform cleanup operations
|
boolean |
updateConnectionAccessTime()
Updates the access time for the current connection.
|
public ConnectionCache(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.security.UserProvider userProvider,
int cleanInterval,
int maxIdleTime)
throws IOException
IOExceptionpublic void setEffectiveUser(String user)
public String getEffectiveUser()
public void shutdown()
public org.apache.hadoop.hbase.client.Admin getAdmin()
throws IOException
IOExceptionpublic org.apache.hadoop.hbase.client.Table getTable(String tableName) throws IOException
IOExceptionpublic org.apache.hadoop.hbase.client.RegionLocator getRegionLocator(byte[] tableName)
throws IOException
IOExceptionpublic boolean updateConnectionAccessTime()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.