@InterfaceAudience.Private class RegionCoprocessorRpcChannel extends SyncCoprocessorRpcChannel
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.Table.coprocessorService(byte[])
Modifier and Type | Field and Description |
---|---|
private ClusterConnection |
conn |
private byte[] |
lastRegion |
private static org.slf4j.Logger |
LOG |
private int |
operationTimeout |
private byte[] |
row |
private RpcRetryingCallerFactory |
rpcCallerFactory |
private TableName |
table |
Constructor and Description |
---|
RegionCoprocessorRpcChannel(ClusterConnection conn,
TableName table,
byte[] row)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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) |
byte[] |
getLastRegion()
Get last region this RpcChannel communicated with
|
callBlockingMethod, callMethod
private static final org.slf4j.Logger LOG
private final byte[] row
private final ClusterConnection conn
private byte[] lastRegion
private final int operationTimeout
private final RpcRetryingCallerFactory rpcCallerFactory
RegionCoprocessorRpcChannel(ClusterConnection conn, TableName table, byte[] row)
conn
- connection to usetable
- to connect torow
- to locate region withprotected 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
callExecService
in class SyncCoprocessorRpcChannel
IOException
public byte[] getLastRegion()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.