Package org.apache.hadoop.hbase.client
Class TestClientTimeouts.RandomTimeoutBlockingRpcChannel
java.lang.Object
org.apache.hadoop.hbase.ipc.AbstractRpcClient.BlockingRpcChannelImplementation
org.apache.hadoop.hbase.client.TestClientTimeouts.RandomTimeoutBlockingRpcChannel
- All Implemented Interfaces:
org.apache.hbase.thirdparty.com.google.protobuf.BlockingRpcChannel
- Enclosing class:
- TestClientTimeouts
static class TestClientTimeouts.RandomTimeoutBlockingRpcChannel
extends org.apache.hadoop.hbase.ipc.AbstractRpcClient.BlockingRpcChannelImplementation
Blocking rpc channel that goes via hbase rpc.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.apache.hadoop.hbase.net.Address
protected final org.apache.hadoop.hbase.ipc.AbstractRpcClient<?>
protected final int
protected final org.apache.hadoop.hbase.security.User
-
Constructor Summary
ConstructorDescriptionRandomTimeoutBlockingRpcChannel
(org.apache.hadoop.hbase.ipc.BlockingRpcClient rpcClient, org.apache.hadoop.hbase.ServerName sn, org.apache.hadoop.hbase.security.User ticket, int rpcTimeout) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hbase.thirdparty.com.google.protobuf.Message
callBlockingMethod
(org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor md, org.apache.hbase.thirdparty.com.google.protobuf.RpcController controller, org.apache.hbase.thirdparty.com.google.protobuf.Message param, org.apache.hbase.thirdparty.com.google.protobuf.Message returnType) protected org.apache.hadoop.hbase.ipc.HBaseRpcController
configureRpcController
(org.apache.hbase.thirdparty.com.google.protobuf.RpcController arg0)
-
Field Details
-
addr
protected final org.apache.hadoop.hbase.net.Address addr -
rpcClient
protected final org.apache.hadoop.hbase.ipc.AbstractRpcClient<?> rpcClient -
ticket
protected final org.apache.hadoop.hbase.security.User ticket -
rpcTimeout
protected final int rpcTimeout
-
-
Constructor Details
-
RandomTimeoutBlockingRpcChannel
RandomTimeoutBlockingRpcChannel(org.apache.hadoop.hbase.ipc.BlockingRpcClient rpcClient, org.apache.hadoop.hbase.ServerName sn, org.apache.hadoop.hbase.security.User ticket, int rpcTimeout)
-
-
Method Details
-
callBlockingMethod
public org.apache.hbase.thirdparty.com.google.protobuf.Message callBlockingMethod(org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor md, org.apache.hbase.thirdparty.com.google.protobuf.RpcController controller, org.apache.hbase.thirdparty.com.google.protobuf.Message param, org.apache.hbase.thirdparty.com.google.protobuf.Message returnType) throws org.apache.hbase.thirdparty.com.google.protobuf.ServiceException - Specified by:
callBlockingMethod
in interfaceorg.apache.hbase.thirdparty.com.google.protobuf.BlockingRpcChannel
- Overrides:
callBlockingMethod
in classorg.apache.hadoop.hbase.ipc.AbstractRpcClient.BlockingRpcChannelImplementation
- Throws:
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
-
configureRpcController
protected org.apache.hadoop.hbase.ipc.HBaseRpcController configureRpcController(org.apache.hbase.thirdparty.com.google.protobuf.RpcController arg0)
-