@InterfaceAudience.Private abstract class RpcConnection extends Object
Modifier and Type | Field and Description |
---|---|
protected Codec |
codec |
protected org.apache.hadoop.io.compress.CompressionCodec |
compressor |
protected org.apache.hadoop.conf.Configuration |
conf |
protected static boolean |
CRYPTO_AES_ENABLED_DEFAULT |
protected static String |
CRYPTO_AES_ENABLED_KEY |
protected long |
lastTouched |
private static org.slf4j.Logger |
LOG |
protected MetricsConnection |
metrics |
protected SaslClientAuthenticationProvider |
provider |
protected int |
reloginMaxBackoff |
protected ConnectionId |
remoteId |
protected SecurityInfo |
securityInfo |
protected org.apache.hbase.thirdparty.io.netty.util.HashedWheelTimer |
timeoutTimer |
protected org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> |
token |
protected boolean |
useSasl |
Modifier | Constructor and Description |
---|---|
protected |
RpcConnection(org.apache.hadoop.conf.Configuration conf,
org.apache.hbase.thirdparty.io.netty.util.HashedWheelTimer timeoutTimer,
ConnectionId remoteId,
String clusterId,
boolean isSecurityEnabled,
Codec codec,
org.apache.hadoop.io.compress.CompressionCodec compressor,
MetricsConnection metrics) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
callTimeout(Call call) |
abstract void |
cleanupConnection()
Does the clean up work after the connection is removed from the connection pool
|
protected org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.ConnectionHeader |
getConnectionHeader() |
protected byte[] |
getConnectionHeaderPreamble() |
long |
getLastTouched() |
protected InetSocketAddress |
getRemoteInetAddress(MetricsConnection metrics) |
abstract boolean |
isActive()
Tell the idle connection sweeper whether we could be swept.
|
ConnectionId |
remoteId() |
protected void |
scheduleTimeoutTask(Call call) |
abstract void |
sendRequest(Call call,
HBaseRpcController hrc) |
void |
setLastTouched(long lastTouched) |
abstract void |
shutdown()
Just close connection.
|
private static final org.slf4j.Logger LOG
protected final ConnectionId remoteId
protected final boolean useSasl
protected final org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token
protected final SecurityInfo securityInfo
protected final int reloginMaxBackoff
protected final org.apache.hadoop.io.compress.CompressionCodec compressor
protected final MetricsConnection metrics
protected final org.apache.hbase.thirdparty.io.netty.util.HashedWheelTimer timeoutTimer
protected final org.apache.hadoop.conf.Configuration conf
protected static String CRYPTO_AES_ENABLED_KEY
protected static boolean CRYPTO_AES_ENABLED_DEFAULT
protected long lastTouched
protected SaslClientAuthenticationProvider provider
protected RpcConnection(org.apache.hadoop.conf.Configuration conf, org.apache.hbase.thirdparty.io.netty.util.HashedWheelTimer timeoutTimer, ConnectionId remoteId, String clusterId, boolean isSecurityEnabled, Codec codec, org.apache.hadoop.io.compress.CompressionCodec compressor, MetricsConnection metrics) throws IOException
IOException
protected final void scheduleTimeoutTask(Call call)
protected final byte[] getConnectionHeaderPreamble()
protected final org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.ConnectionHeader getConnectionHeader()
protected final InetSocketAddress getRemoteInetAddress(MetricsConnection metrics) throws UnknownHostException
UnknownHostException
protected abstract void callTimeout(Call call)
public ConnectionId remoteId()
public long getLastTouched()
public void setLastTouched(long lastTouched)
public abstract boolean isActive()
public abstract void shutdown()
public abstract void sendRequest(Call call, HBaseRpcController hrc) throws IOException
IOException
public abstract void cleanupConnection()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.