@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 |
HBASE_CLIENT_CONNECTION_IMPL| Constructor and Description |
|---|
CoprocessorHConnection(ClusterConnection delegate,
HRegionServer server)
Deprecated.
delegate is not used
|
CoprocessorHConnection(org.apache.hadoop.conf.Configuration conf,
HRegionServer server)
Constructor that accepts custom configuration
|
CoprocessorHConnection(HRegionServer server)
Constructor that uses server configuration
|
protected String clusterId
@Deprecated public CoprocessorHConnection(ClusterConnection 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 ClusterConnection 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 HConnectionHConnection.IOException - if we cannot create the connectionpublic ClientProtos.ClientService.BlockingInterface getClient(ServerName serverName) throws IOException
getClient in interface ClusterConnectiongetClient in interface HConnectionIOExceptionpublic NonceGenerator getNonceGenerator()
getNonceGenerator in interface ClusterConnectiongetNonceGenerator in interface HConnectionpublic HTableInterface getTable(String arg0) throws IOException
getTable in interface HConnectionIOExceptionpublic HTableInterface getTable(byte[] arg0) throws IOException
getTable in interface HConnectionIOExceptionpublic HTableInterface getTable(TableName arg0) throws IOException
getTable in interface ConnectiongetTable in interface HConnectionIOExceptionpublic HTableInterface getTable(String arg0, ExecutorService arg1) throws IOException
getTable in interface HConnectionIOExceptionpublic HTableInterface getTable(byte[] arg0, ExecutorService arg1) throws IOException
getTable in interface HConnectionIOExceptionpublic HTableInterface getTable(TableName arg0, ExecutorService arg1) throws IOException
getTable in interface ConnectiongetTable in interface HConnectionIOExceptionpublic 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 ConnectiongetRegionLocator in interface HConnectionIOExceptionpublic Admin getAdmin() throws IOException
getAdmin in interface ConnectiongetAdmin in interface HConnectionIOExceptionprotected ExecutorService getCurrentBatchPool()
public org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration in interface ConnectiongetConfiguration in interface HConnection@Deprecated public boolean isMasterRunning() throws MasterNotRunningException, ZooKeeperConnectionException
isMasterRunning in interface ClusterConnectionisMasterRunning in interface HConnectionMasterNotRunningExceptionZooKeeperConnectionExceptionpublic HRegionLocation getRegionLocation(TableName arg0, byte[] arg1, boolean arg2) throws IOException
getRegionLocation in interface ClusterConnectiongetRegionLocation in interface HConnectionIOExceptionpublic HRegionLocation getRegionLocation(byte[] arg0, byte[] arg1, boolean arg2) throws IOException
getRegionLocation in interface HConnectionIOExceptionpublic boolean isTableEnabled(TableName arg0) throws IOException
isTableEnabled in interface HConnectionIOExceptionpublic boolean isTableEnabled(byte[] arg0)
throws IOException
isTableEnabled in interface HConnectionIOExceptionpublic boolean isTableDisabled(TableName arg0) throws IOException
isTableDisabled in interface HConnectionIOExceptionpublic boolean isTableDisabled(byte[] arg0)
throws IOException
isTableDisabled in interface HConnectionIOExceptionpublic boolean isTableAvailable(TableName arg0) throws IOException
isTableAvailable in interface HConnectionIOExceptionpublic boolean isTableAvailable(byte[] arg0)
throws IOException
isTableAvailable in interface HConnectionIOExceptionpublic boolean isTableAvailable(TableName arg0, byte[][] arg1) throws IOException
isTableAvailable in interface ClusterConnectionisTableAvailable in interface HConnectionIOExceptionpublic boolean isTableAvailable(byte[] arg0,
byte[][] arg1)
throws IOException
isTableAvailable in interface HConnectionIOExceptionpublic HRegionLocation locateRegion(byte[] arg0) throws IOException
locateRegion in interface ClusterConnectionlocateRegion in interface HConnectionIOExceptionpublic boolean isDeadServer(ServerName arg0)
isDeadServer in interface ClusterConnectionisDeadServer in interface HConnectionpublic List<HRegionLocation> locateRegions(TableName arg0) throws IOException
locateRegions in interface ClusterConnectionlocateRegions in interface HConnectionIOExceptionpublic List<HRegionLocation> locateRegions(byte[] arg0) throws IOException
locateRegions in interface HConnectionIOExceptionpublic List<HRegionLocation> locateRegions(TableName arg0, boolean arg1, boolean arg2) throws IOException
locateRegions in interface ClusterConnectionlocateRegions in interface HConnectionIOExceptionpublic List<HRegionLocation> locateRegions(byte[] arg0, boolean arg1, boolean arg2) throws IOException
locateRegions in interface HConnectionIOExceptionpublic HRegionLocation locateRegion(TableName arg0, byte[] arg1) throws IOException
locateRegion in interface ClusterConnectionlocateRegion in interface HConnectionIOExceptionpublic HRegionLocation locateRegion(byte[] arg0, byte[] arg1) throws IOException
locateRegion in interface HConnectionIOExceptionpublic HRegionLocation relocateRegion(TableName arg0, byte[] arg1) throws IOException
relocateRegion in interface ClusterConnectionrelocateRegion in interface HConnectionIOExceptionpublic RegionLocations relocateRegion(TableName arg0, byte[] arg1, int arg2) throws IOException
relocateRegion in interface ClusterConnectionIOExceptionpublic HRegionLocation relocateRegion(byte[] arg0, byte[] arg1) throws IOException
relocateRegion in interface HConnectionIOExceptionpublic 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 clearRegionCache(TableName arg0, byte[] arg1)
public void clearCaches(ServerName arg0)
clearCaches in interface ClusterConnectionclearCaches in interface HConnectionpublic void clearRegionCache()
clearRegionCache in interface ClusterConnectionclearRegionCache in interface HConnectionpublic void clearRegionCache(TableName arg0)
clearRegionCache in interface ClusterConnectionclearRegionCache in interface HConnectionpublic void clearRegionCache(byte[] arg0)
clearRegionCache in interface HConnectionpublic AdminProtos.AdminService.BlockingInterface getAdmin(ServerName arg0) throws IOException
getAdmin in interface ClusterConnectiongetAdmin in interface HConnectionIOExceptionpublic AdminProtos.AdminService.BlockingInterface getAdmin(ServerName arg0, boolean arg1) throws IOException
getAdmin in interface HConnectionIOExceptionpublic MasterProtos.MasterService.BlockingInterface getMaster() throws MasterNotRunningException
getMaster in interface ClusterConnectiongetMaster in interface HConnectionMasterNotRunningExceptionpublic org.apache.hadoop.hbase.client.MasterKeepAliveConnection getKeepAliveMasterService() throws MasterNotRunningException
getKeepAliveMasterService in interface ClusterConnectiongetKeepAliveMasterService in interface HConnectionMasterNotRunningExceptionpublic void deleteCachedRegionLocation(HRegionLocation arg0)
deleteCachedRegionLocation in interface ClusterConnectiondeleteCachedRegionLocation in interface HConnectionpublic void updateCachedLocations(TableName arg0, byte[] arg1, Object arg2, HRegionLocation arg3)
updateCachedLocations in interface HConnectionpublic void updateCachedLocations(TableName arg0, byte[] arg1, byte[] arg2, Object arg3, ServerName arg4)
updateCachedLocations in interface ClusterConnectionupdateCachedLocations in interface HConnectionpublic void updateCachedLocations(byte[] arg0,
byte[] arg1,
Object arg2,
HRegionLocation arg3)
updateCachedLocations in interface HConnection@Deprecated public void processBatch(List<? extends Row> arg0, TableName arg1, ExecutorService arg2, Object[] arg3) throws IOException, InterruptedException
processBatch in interface HConnectionIOExceptionInterruptedException@Deprecated public void processBatch(List<? extends Row> arg0, byte[] arg1, ExecutorService arg2, Object[] arg3) throws IOException, InterruptedException
processBatch in interface HConnectionIOExceptionInterruptedException@Deprecated public <R> void processBatchCallback(List<? extends Row> arg0, TableName arg1, ExecutorService arg2, Object[] arg3, Batch.Callback<R> arg4) throws IOException, InterruptedException
processBatchCallback in interface HConnectionIOExceptionInterruptedException@Deprecated public <R> void processBatchCallback(List<? extends Row> arg0, byte[] arg1, ExecutorService arg2, Object[] arg3, Batch.Callback<R> arg4) throws IOException, InterruptedException
processBatchCallback in interface HConnectionIOExceptionInterruptedExceptionprotected org.apache.hadoop.hbase.client.AsyncProcess createAsyncProcess(org.apache.hadoop.conf.Configuration arg0)
public org.apache.hadoop.hbase.client.AsyncProcess getAsyncProcess()
getAsyncProcess in interface ClusterConnectionpublic ServerStatisticTracker getStatisticsTracker()
getStatisticsTracker in interface ClusterConnectionpublic ClientBackoffPolicy getBackoffPolicy()
getBackoffPolicy in interface ClusterConnection@Deprecated public void setRegionCachePrefetch(TableName arg0, boolean arg1)
setRegionCachePrefetch in interface HConnection@Deprecated public void setRegionCachePrefetch(byte[] arg0, boolean arg1)
setRegionCachePrefetch in interface HConnection@Deprecated public boolean getRegionCachePrefetch(TableName arg0)
getRegionCachePrefetch in interface HConnection@Deprecated public boolean getRegionCachePrefetch(byte[] arg0)
getRegionCachePrefetch in interface HConnectionpublic boolean isClosed()
isClosed in interface ConnectionisClosed in interface HConnectionpublic int getCurrentNrHRS()
throws IOException
getCurrentNrHRS in interface HConnectionIOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface Connectionprotected void finalize()
throws Throwable
@Deprecated public HTableDescriptor[] listTables() throws IOException
listTables in interface HConnectionIOException@Deprecated public String[] getTableNames() throws IOException
getTableNames in interface HConnectionIOException@Deprecated public TableName[] listTableNames() throws IOException
listTableNames in interface HConnectionIOException@Deprecated public HTableDescriptor[] getHTableDescriptorsByTableName(List<TableName> arg0) throws IOException
getHTableDescriptorsByTableName in interface HConnectionIOException@Deprecated public HTableDescriptor[] getHTableDescriptors(List<String> arg0) throws IOException
getHTableDescriptors in interface HConnectionIOException@Deprecated public HTableDescriptor getHTableDescriptor(TableName arg0) throws IOException
getHTableDescriptor in interface HConnectionIOException@Deprecated public HTableDescriptor getHTableDescriptor(byte[] arg0) throws IOException
getHTableDescriptor in interface HConnectionIOExceptionpublic RpcRetryingCallerFactory getNewRpcRetryingCallerFactory(org.apache.hadoop.conf.Configuration arg0)
getNewRpcRetryingCallerFactory in interface ClusterConnectionpublic boolean isManaged()
isManaged in interface ClusterConnectionCopyright © 2015 The Apache Software Foundation. All Rights Reserved.