@InterfaceAudience.Private @InterfaceStability.Evolving public class CoprocessorHConnection extends Object
You should not use this class from any client - its an internal class meant for use by the coprocessor framework.
| Modifier and Type | Field and Description |
|---|---|
protected String |
clusterId |
static String |
RETRIES_BY_SERVER_KEY |
protected User |
user |
HBASE_CLIENT_CONNECTION_IMPL| Constructor and Description |
|---|
CoprocessorHConnection(org.apache.hadoop.conf.Configuration conf,
HRegionServer server)
Constructor that accepts custom configuration
|
CoprocessorHConnection(HRegionServer server)
Constructor that uses server configuration
|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTablepublic static final String RETRIES_BY_SERVER_KEY
protected User user
protected String clusterId
public CoprocessorHConnection(HRegionServer server) throws IOException
server - IOException - if we cannot create the connectionpublic CoprocessorHConnection(org.apache.hadoop.conf.Configuration conf,
HRegionServer server)
throws IOException
conf - server - IOException - if we cannot create the connectionpublic static ClusterConnection getConnectionForEnvironment(CoprocessorEnvironment env) throws IOException
ClusterConnection based on the environment in which we are running the
coprocessor. The ClusterConnection must be externally cleaned up
(we bypass the usual HTable cleanup mechanisms since we own everything).env - environment hosting the ClusterConnectionClusterConnection.IOException - if we cannot create the connectionpublic org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.BlockingInterface getClient(ServerName serverName) throws IOException
getClient in interface ClusterConnectionIOExceptionpublic NonceGenerator getNonceGenerator()
getNonceGenerator in interface ClusterConnectionpublic Table getTable(TableName arg0) throws IOException
getTable in interface ConnectionIOExceptionpublic TableBuilder getTableBuilder(TableName arg0, ExecutorService arg1)
getTableBuilder in interface Connectionpublic BufferedMutator getBufferedMutator(BufferedMutatorParams arg0)
getBufferedMutator in interface Connectionpublic BufferedMutator getBufferedMutator(TableName arg0)
getBufferedMutator in interface Connectionpublic RegionLocator getRegionLocator(TableName arg0) throws IOException
getRegionLocator in interface ConnectionIOExceptionpublic Admin getAdmin() throws IOException
getAdmin in interface ConnectionIOExceptionpublic MetricsConnection getConnectionMetrics()
getConnectionMetrics in interface ClusterConnectionprotected ExecutorService getCurrentMetaLookupPool()
protected ExecutorService getCurrentBatchPool()
protected void retrieveClusterId()
public org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration in interface Connection@Deprecated public boolean isMasterRunning() throws MasterNotRunningException, ZooKeeperConnectionException
isMasterRunning in interface ClusterConnectionMasterNotRunningExceptionZooKeeperConnectionExceptionpublic HRegionLocation getRegionLocation(TableName arg0, byte[] arg1, boolean arg2) throws IOException
getRegionLocation in interface ClusterConnectionIOExceptionpublic boolean isTableEnabled(TableName arg0) throws IOException
isTableEnabled in interface ClusterConnectionIOExceptionpublic boolean isTableDisabled(TableName arg0) throws IOException
isTableDisabled in interface ClusterConnectionIOExceptionpublic boolean isTableAvailable(TableName arg0, @Nullable byte[][] arg1) throws IOException
isTableAvailable in interface ClusterConnectionIOExceptionpublic HRegionLocation locateRegion(byte[] arg0) throws IOException
locateRegion in interface ClusterConnectionIOExceptionpublic boolean isDeadServer(ServerName arg0)
isDeadServer in interface ClusterConnectionpublic List<HRegionLocation> locateRegions(TableName arg0) throws IOException
locateRegions in interface ClusterConnectionIOExceptionpublic List<HRegionLocation> locateRegions(TableName arg0, boolean arg1, boolean arg2) throws IOException
locateRegions in interface ClusterConnectionIOExceptionpublic HRegionLocation locateRegion(TableName arg0, byte[] arg1) throws IOException
locateRegion in interface ClusterConnectionIOExceptionpublic HRegionLocation relocateRegion(TableName arg0, byte[] arg1) throws IOException
relocateRegion in interface ClusterConnectionIOExceptionpublic RegionLocations relocateRegion(TableName arg0, byte[] arg1, int arg2) throws IOException
relocateRegion in interface ClusterConnectionIOExceptionpublic RegionLocations locateRegion(TableName arg0, byte[] arg1, boolean arg2, boolean arg3) throws IOException
locateRegion in interface ClusterConnectionIOExceptionpublic RegionLocations locateRegion(TableName arg0, byte[] arg1, boolean arg2, boolean arg3, int arg4) throws IOException
locateRegion in interface ClusterConnectionIOExceptionpublic void cacheLocation(TableName arg0, RegionLocations arg1)
cacheLocation in interface ClusterConnectionpublic void clearRegionCache(TableName arg0, byte[] arg1)
public void clearCaches(ServerName arg0)
clearCaches in interface ClusterConnectionpublic void clearRegionCache()
clearRegionCache in interface ClusterConnectionpublic void clearRegionCache(TableName arg0)
clearRegionCache in interface ClusterConnectionpublic org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService.BlockingInterface getAdmin(ServerName arg0) throws IOException
getAdmin in interface ClusterConnectionIOExceptionpublic org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.BlockingInterface getMaster() throws MasterNotRunningException
getMaster in interface ClusterConnectionMasterNotRunningExceptionpublic org.apache.hadoop.hbase.client.MasterKeepAliveConnection getKeepAliveMasterService() throws MasterNotRunningException
getKeepAliveMasterService in interface ClusterConnectionMasterNotRunningExceptionpublic void deleteCachedRegionLocation(HRegionLocation arg0)
deleteCachedRegionLocation in interface ClusterConnectionpublic void updateCachedLocations(TableName arg0, byte[] arg1, byte[] arg2, Object arg3, ServerName arg4)
updateCachedLocations in interface ClusterConnectionpublic org.apache.hadoop.hbase.client.AsyncProcess getAsyncProcess()
getAsyncProcess in interface ClusterConnectionpublic ServerStatisticTracker getStatisticsTracker()
getStatisticsTracker in interface ClusterConnectionpublic ClientBackoffPolicy getBackoffPolicy()
getBackoffPolicy in interface ClusterConnectionpublic boolean isClosed()
isClosed in interface Connectionpublic int getCurrentNrHRS()
throws IOException
getCurrentNrHRS in interface ClusterConnectionIOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface Connectionprotected void finalize()
throws Throwable
public TableState getTableState(TableName arg0) throws IOException
getTableState in interface ClusterConnectionIOExceptionpublic RpcRetryingCallerFactory getNewRpcRetryingCallerFactory(org.apache.hadoop.conf.Configuration arg0)
getNewRpcRetryingCallerFactory in interface ClusterConnectionpublic boolean hasCellBlockSupport()
hasCellBlockSupport in interface ClusterConnectionpublic ConnectionConfiguration getConnectionConfiguration()
getConnectionConfiguration in interface ClusterConnectionpublic RpcRetryingCallerFactory getRpcRetryingCallerFactory()
getRpcRetryingCallerFactory in interface ClusterConnectionpublic RpcControllerFactory getRpcControllerFactory()
getRpcControllerFactory in interface ClusterConnectionCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.