@InterfaceAudience.Private @InterfaceStability.Evolving public class CoprocessorHConnection extends HConnectionManager.HConnectionImplementation
You should not use this class from any client - its an internal class meant for use by the coprocessor framework.
clusterId
HBASE_CLIENT_CONNECTION_IMPL
Constructor and Description |
---|
CoprocessorHConnection(org.apache.hadoop.conf.Configuration conf,
HRegionServer server)
Constructor that accepts custom configuration
|
CoprocessorHConnection(HConnection delegate,
HRegionServer server)
Deprecated.
delegate is not used
|
CoprocessorHConnection(HRegionServer server)
Constructor that uses server configuration
|
Modifier and Type | Method and Description |
---|---|
ClientProtos.ClientService.BlockingInterface |
getClient(ServerName serverName)
Establishes a connection to the region server at the specified address, and returns
a region client protocol.
|
static HConnection |
getConnectionForEnvironment(CoprocessorEnvironment env)
Create an unmanaged
HConnection based on the environment in which we are running the
coprocessor. |
abort, clearCaches, clearRegionCache, clearRegionCache, clearRegionCache, close, createAsyncProcess, deleteCachedRegionLocation, finalize, getAdmin, getAdmin, getConfiguration, getCurrentBatchPool, getCurrentNrHRS, getHTableDescriptor, getHTableDescriptor, getHTableDescriptors, getHTableDescriptorsByTableName, getKeepAliveMasterService, getMaster, getNonceGenerator, getRegionCachePrefetch, getRegionCachePrefetch, getRegionLocation, getRegionLocation, getTable, getTable, getTable, getTable, getTable, getTable, getTableNames, isAborted, isClosed, isDeadServer, isMasterRunning, isTableAvailable, isTableAvailable, isTableAvailable, isTableAvailable, isTableDisabled, isTableDisabled, isTableEnabled, isTableEnabled, listTableNames, listTables, locateRegion, locateRegion, locateRegion, locateRegions, locateRegions, locateRegions, locateRegions, processBatch, processBatch, processBatchCallback, processBatchCallback, relocateRegion, relocateRegion, setRegionCachePrefetch, setRegionCachePrefetch, toString, updateCachedLocations, updateCachedLocations
@Deprecated public CoprocessorHConnection(HConnection delegate, HRegionServer server) throws IOException
delegate
- server
- IOException
- if we cannot create the connectionpublic 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 HConnection getConnectionForEnvironment(CoprocessorEnvironment env) throws IOException
HConnection
based on the environment in which we are running the
coprocessor. The HConnection
must be externally cleaned up (we bypass the usual HTable
cleanup mechanisms since we own everything).env
- environment hosting the HConnection
HConnection
.IOException
- if we cannot create the connectionpublic ClientProtos.ClientService.BlockingInterface getClient(ServerName serverName) throws IOException
HConnection
getClient
in interface HConnection
getClient
in class HConnectionManager.HConnectionImplementation
IOException
- if a remote or network exception occursCopyright © 2014 The Apache Software Foundation. All rights reserved.