public static class TestClientTimeouts.RandomTimeoutRpcClient extends RpcClientImpl
RpcClientImpl.ConnectionAbstractRpcClient.BlockingRpcChannelImplementationcallIdCnt, connections, failedServers, running, socketFactory, tokenHandlersclusterId, codec, compressor, conf, connectTO, failureSleep, fallbackAllowed, ipcUtil, localAddr, LOG, maxRetries, minIdleTimeBeforeClose, readTO, tcpKeepAlive, tcpNoDelay, userProvider, writeTODEFAULT_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, wrapExceptiongetDefaultCodec, getPoolSize, getPoolTypepublic RandomTimeoutRpcClient(Configuration conf,
String clusterId,
SocketAddress localAddr)
public BlockingRpcChannel createBlockingRpcChannel(ServerName sn, User ticket, int rpcTimeout)
RpcClientcreateBlockingRpcChannel in interface RpcClientcreateBlockingRpcChannel in class AbstractRpcClientsn - server name describing location of serverticket - which is to use the connectionrpcTimeout - default rpc operation timeout