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
Services 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
FieldsModifier and TypeFieldDescriptionprivate final ClusterConnectionprivate byte[]private static final org.slf4j.Loggerprivate final intprivate final byte[]private final RpcRetryingCallerFactoryprivate final TableName -
Constructor Summary
ConstructorsConstructorDescriptionRegionCoprocessorRpcChannel(ClusterConnection conn, TableName table, byte[] row, Map<String, byte[]> requestAttributes) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected com.google.protobuf.MessagecallExecService(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:
callExecServicein classSyncCoprocessorRpcChannel- Throws:
IOException
-
getLastRegion
Get last region this RpcChannel communicated with- Returns:
- region name as byte array
-