public static class TestClientTimeouts.RandomTimeoutRpcClient extends RpcClientImpl
RpcClientImpl.Connection
AbstractRpcClient.BlockingRpcChannelImplementation
callIdCnt, connections, failedServers, running, socketFactory, tokenHandlers
clusterId, codec, compressor, conf, connectTO, failureSleep, fallbackAllowed, ipcUtil, localAddr, LOG, maxRetries, minIdleTimeBeforeClose, readTO, tcpKeepAlive, tcpNoDelay, userProvider, writeTO
DEFAULT_CODEC_CLASS, DEFAULT_SOCKET_TIMEOUT_CONNECT, DEFAULT_SOCKET_TIMEOUT_READ, DEFAULT_SOCKET_TIMEOUT_WRITE, FAILED_SERVER_EXPIRY_DEFAULT, FAILED_SERVER_EXPIRY_KEY, IDLE_TIME, IPC_CLIENT_FALLBACK_TO_SIMPLE_AUTH_ALLOWED_DEFAULT, IPC_CLIENT_FALLBACK_TO_SIMPLE_AUTH_ALLOWED_KEY, PING_CALL_ID, SOCKET_TIMEOUT_CONNECT, SOCKET_TIMEOUT_READ, SOCKET_TIMEOUT_WRITE, SPECIFIC_WRITE_THREAD
Constructor and Description |
---|
RandomTimeoutRpcClient(Configuration conf,
String clusterId,
SocketAddress localAddr) |
Modifier and Type | Method and Description |
---|---|
BlockingRpcChannel |
createBlockingRpcChannel(ServerName sn,
User ticket,
int rpcTimeout)
Creates a "channel" that can be used by a blocking protobuf service.
|
call, cancelConnections, close, createConnection, getConnection, wrapException
getDefaultCodec, getPoolSize, getPoolType
public RandomTimeoutRpcClient(Configuration conf, String clusterId, SocketAddress localAddr)
public BlockingRpcChannel createBlockingRpcChannel(ServerName sn, User ticket, int rpcTimeout)
RpcClient
createBlockingRpcChannel
in interface RpcClient
createBlockingRpcChannel
in class AbstractRpcClient
sn
- server name describing location of serverticket
- which is to use the connectionrpcTimeout
- default rpc operation timeout