@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 SaslClientAuthenticationProvider |
provider |
protected int |
reloginMaxBackoff |
protected ConnectionId |
remoteId |
protected SecurityInfo |
securityInfo |
protected InetAddress |
serverAddress |
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) |
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() |
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 InetAddress serverAddress
protected final SecurityInfo securityInfo
protected final int reloginMaxBackoff
protected final org.apache.hadoop.io.compress.CompressionCodec compressor
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) throws IOException
IOException
protected void scheduleTimeoutTask(Call call)
protected byte[] getConnectionHeaderPreamble()
protected org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.ConnectionHeader getConnectionHeader()
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.