Package org.apache.hadoop.hbase.ipc
Interface RpcClient
- All Superinterfaces:
- AutoCloseable,- Closeable
- All Known Implementing Classes:
- AbstractRpcClient,- BlockingRpcClient,- NettyRpcClient
Interface for RpcClient implementations so ConnectionManager can handle it.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intstatic final intstatic final intstatic final intstatic final Stringstatic final Stringstatic final booleanstatic final Stringstatic final intstatic final byte[]static final byte[]static final Stringstatic final StringHow long we wait when we wait for an answer.static final Stringstatic final String
- 
Method SummaryModifier and TypeMethodDescriptionvoidInterrupt the connections to the given server.voidclose()Stop all threads related to this client.org.apache.hbase.thirdparty.com.google.protobuf.BlockingRpcChannelcreateBlockingRpcChannel(ServerName sn, User user, int rpcTimeout) Creates a "channel" that can be used by a blocking protobuf service.org.apache.hbase.thirdparty.com.google.protobuf.RpcChannelcreateRpcChannel(ServerName sn, User user, int rpcTimeout) Creates a "channel" that can be used by a protobuf service.booleanReturn true when this client uses aCodecand so supports cell blocks.
- 
Field Details- 
FAILED_SERVER_EXPIRY_KEY- See Also:
 
- 
FAILED_SERVER_EXPIRY_DEFAULT- See Also:
 
- 
IDLE_TIME- See Also:
 
- 
IPC_CLIENT_FALLBACK_TO_SIMPLE_AUTH_ALLOWED_KEY- See Also:
 
- 
IPC_CLIENT_FALLBACK_TO_SIMPLE_AUTH_ALLOWED_DEFAULT- See Also:
 
- 
SPECIFIC_WRITE_THREAD- See Also:
 
- 
DEFAULT_CODEC_CLASS- See Also:
 
- 
SOCKET_TIMEOUT_CONNECT- See Also:
 
- 
SOCKET_TIMEOUT_READHow long we wait when we wait for an answer. It's not the operation time, it's the time we wait when we start to receive an answer, when the remote write starts to send the data.- See Also:
 
- 
SOCKET_TIMEOUT_WRITE- See Also:
 
- 
DEFAULT_SOCKET_TIMEOUT_CONNECT- See Also:
 
- 
DEFAULT_SOCKET_TIMEOUT_READ- See Also:
 
- 
DEFAULT_SOCKET_TIMEOUT_WRITE- See Also:
 
- 
PING_CALL_ID- See Also:
 
- 
REGISTRY_PREAMBLE_HEADER
- 
SECURITY_PREAMBLE_HEADER
 
- 
- 
Method Details- 
createBlockingRpcChannelorg.apache.hbase.thirdparty.com.google.protobuf.BlockingRpcChannel createBlockingRpcChannel(ServerName sn, User user, int rpcTimeout) Creates a "channel" that can be used by a blocking protobuf service. Useful setting up protobuf blocking stubs.- Parameters:
- sn- server name describing location of server
- user- which is to use the connection
- rpcTimeout- default rpc operation timeout
- Returns:
- A blocking rpc channel that goes via this rpc client instance.
 
- 
createRpcChannelorg.apache.hbase.thirdparty.com.google.protobuf.RpcChannel createRpcChannel(ServerName sn, User user, int rpcTimeout) Creates a "channel" that can be used by a protobuf service. Useful setting up protobuf stubs.- Parameters:
- sn- server name describing location of server
- user- which is to use the connection
- rpcTimeout- default rpc operation timeout
- Returns:
- A rpc channel that goes via this rpc client instance.
 
- 
cancelConnectionsInterrupt the connections to the given server. This should be called if the server is known as actually dead. This will not prevent current operation to be retried, and, depending on their own behavior, they may retry on the same server. This can be a feature, for example at startup. In any case, they're likely to get connection refused (if the process died) or no route to host: i.e. their next retries should be faster and with a safe exception.- Parameters:
- sn- server location to cancel connections of
 
- 
closevoid close()Stop all threads related to this client. No further calls may be made using this client.- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
 
- 
hasCellBlockSupportboolean hasCellBlockSupport()Return true when this client uses aCodecand so supports cell blocks.
 
-