@InterfaceAudience.Private abstract class RpcConnection extends Object
Modifier and Type | Field and Description |
---|---|
protected AuthMethod |
authMethod |
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 int |
reloginMaxBackoff |
protected ConnectionId |
remoteId |
protected String |
serverPrincipal |
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() |
protected org.apache.hadoop.security.UserGroupInformation |
getUGI() |
private org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation |
getUserInfo(org.apache.hadoop.security.UserGroupInformation ugi) |
abstract boolean |
isActive()
Tell the idle connection sweeper whether we could be swept.
|
protected void |
relogin() |
ConnectionId |
remoteId() |
protected void |
scheduleTimeoutTask(Call call) |
abstract void |
sendRequest(Call call,
HBaseRpcController hrc) |
void |
setLastTouched(long lastTouched) |
protected boolean |
shouldAuthenticateOverKrb() |
abstract void |
shutdown()
Just close connection.
|
private static final org.slf4j.Logger LOG
protected final ConnectionId remoteId
protected final AuthMethod authMethod
protected final boolean useSasl
protected final org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token
protected final String serverPrincipal
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 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
private org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation getUserInfo(org.apache.hadoop.security.UserGroupInformation ugi)
protected org.apache.hadoop.security.UserGroupInformation getUGI()
protected boolean shouldAuthenticateOverKrb() throws IOException
IOException
protected void relogin() 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–2019 The Apache Software Foundation. All rights reserved.