Package org.apache.hadoop.hbase.client
Class RegionCoprocessorRpcChannel
java.lang.Object
org.apache.hadoop.hbase.client.SyncCoprocessorRpcChannel
org.apache.hadoop.hbase.client.RegionCoprocessorRpcChannel
- All Implemented Interfaces:
com.google.protobuf.BlockingRpcChannel
,com.google.protobuf.RpcChannel
,CoprocessorRpcChannel
Provides clients with an RPC connection to call Coprocessor Endpoint
Service
s against a given table region. An instance of this class may
be obtained by calling Table.coprocessorService(byte[])
,
but should normally only be used in creating a new Service
stub to
call the endpoint methods.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ClusterConnection
private byte[]
private static final org.slf4j.Logger
private final int
private final byte[]
private final RpcRetryingCallerFactory
private final TableName
-
Constructor Summary
ConstructorDescriptionRegionCoprocessorRpcChannel
(ClusterConnection conn, TableName table, byte[] row, Map<String, byte[]> requestAttributes) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected com.google.protobuf.Message
callExecService
(com.google.protobuf.RpcController controller, com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.Message request, com.google.protobuf.Message responsePrototype) byte[]
Get last region this RpcChannel communicated withMethods inherited from class org.apache.hadoop.hbase.client.SyncCoprocessorRpcChannel
callBlockingMethod, callMethod
-
Field Details
-
LOG
-
table
-
row
-
conn
-
lastRegion
-
operationTimeout
-
rpcCallerFactory
-
requestAttributes
-
-
Constructor Details
-
RegionCoprocessorRpcChannel
RegionCoprocessorRpcChannel(ClusterConnection conn, TableName table, byte[] row, Map<String, byte[]> requestAttributes) Constructor- Parameters:
conn
- connection to usetable
- to connect torow
- to locate region with
-
-
Method Details
-
callExecService
protected com.google.protobuf.Message callExecService(com.google.protobuf.RpcController controller, com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.Message request, com.google.protobuf.Message responsePrototype) throws IOException - Specified by:
callExecService
in classSyncCoprocessorRpcChannel
- Throws:
IOException
-
getLastRegion
Get last region this RpcChannel communicated with- Returns:
- region name as byte array
-