Package org.apache.hadoop.hbase.ipc
Class BadAuthNettyRpcConnection
java.lang.Object
org.apache.hadoop.hbase.ipc.BadAuthNettyRpcConnection
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.apache.hadoop.hbase.ipc.CellBlockBuilder
protected final org.apache.hadoop.hbase.codec.Codec
protected final org.apache.hadoop.io.compress.CompressionCodec
protected final org.apache.hadoop.conf.Configuration
protected static boolean
protected static String
protected long
protected final org.apache.hadoop.hbase.client.MetricsConnection
protected org.apache.hadoop.hbase.security.provider.SaslClientAuthenticationProvider
protected final int
protected final org.apache.hadoop.hbase.ipc.ConnectionId
protected final org.apache.hadoop.hbase.security.SecurityInfo
protected final org.apache.hbase.thirdparty.io.netty.util.HashedWheelTimer
protected final org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier>
protected final boolean
-
Constructor Summary
ConstructorDescriptionBadAuthNettyRpcConnection
(org.apache.hadoop.hbase.ipc.NettyRpcClient rpcClient, org.apache.hadoop.hbase.ipc.ConnectionId remoteId) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
callTimeout
(org.apache.hadoop.hbase.ipc.Call arg0) protected final String
chooseServerPrincipal
(Set<String> arg0, org.apache.hadoop.hbase.ipc.Call arg1) void
protected final org.apache.hadoop.hbase.ipc.Call
createSecurityPreambleCall
(org.apache.hbase.thirdparty.com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.ipc.Call> arg0) protected final org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.ConnectionHeader
protected byte[]
long
protected final InetSocketAddress
getRemoteInetAddress
(org.apache.hadoop.hbase.client.MetricsConnection arg0) boolean
isActive()
protected final boolean
protected final <T extends Object>
TrandomSelect
(Collection<T> arg0) (package private) <T extends InputStream & DataInput>
voidreadResponse
(T arg0, Map<Integer, org.apache.hadoop.hbase.ipc.Call> arg1, org.apache.hadoop.hbase.ipc.Call arg2, Consumer<org.apache.hadoop.ipc.RemoteException> arg3) org.apache.hadoop.hbase.ipc.ConnectionId
remoteId()
protected final void
saslNegotiationDone
(String arg0, boolean arg1) protected final void
scheduleTimeoutTask
(org.apache.hadoop.hbase.ipc.Call arg0) void
sendRequest
(org.apache.hadoop.hbase.ipc.Call arg0, org.apache.hadoop.hbase.ipc.HBaseRpcController arg1) void
setLastTouched
(long arg0) void
shutdown()
-
Field Details
-
remoteId
protected final org.apache.hadoop.hbase.ipc.ConnectionId remoteId -
useSasl
protected final boolean useSasl -
token
protected final org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token -
securityInfo
protected final org.apache.hadoop.hbase.security.SecurityInfo securityInfo -
reloginMaxBackoff
protected final int reloginMaxBackoff -
codec
protected final org.apache.hadoop.hbase.codec.Codec codec -
compressor
protected final org.apache.hadoop.io.compress.CompressionCodec compressor -
cellBlockBuilder
protected final org.apache.hadoop.hbase.ipc.CellBlockBuilder cellBlockBuilder -
metrics
protected final org.apache.hadoop.hbase.client.MetricsConnection metrics -
timeoutTimer
protected final org.apache.hbase.thirdparty.io.netty.util.HashedWheelTimer timeoutTimer -
conf
protected final org.apache.hadoop.conf.Configuration conf -
CRYPTO_AES_ENABLED_KEY
-
CRYPTO_AES_ENABLED_DEFAULT
protected static boolean CRYPTO_AES_ENABLED_DEFAULT -
lastTouched
protected long lastTouched -
provider
protected org.apache.hadoop.hbase.security.provider.SaslClientAuthenticationProvider provider
-
-
Constructor Details
-
BadAuthNettyRpcConnection
public BadAuthNettyRpcConnection(org.apache.hadoop.hbase.ipc.NettyRpcClient rpcClient, org.apache.hadoop.hbase.ipc.ConnectionId remoteId) throws IOException - Throws:
IOException
-
-
Method Details
-
getConnectionHeaderPreamble
-
callTimeout
protected void callTimeout(org.apache.hadoop.hbase.ipc.Call arg0) -
isActive
public boolean isActive() -
shutdown
public void shutdown() -
cleanupConnection
public void cleanupConnection() -
sendRequest
public void sendRequest(org.apache.hadoop.hbase.ipc.Call arg0, org.apache.hadoop.hbase.ipc.HBaseRpcController arg1) -
scheduleTimeoutTask
protected final void scheduleTimeoutTask(org.apache.hadoop.hbase.ipc.Call arg0) -
getConnectionHeader
protected final org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.ConnectionHeader getConnectionHeader() -
getRemoteInetAddress
protected final InetSocketAddress getRemoteInetAddress(org.apache.hadoop.hbase.client.MetricsConnection arg0) throws UnknownHostException - Throws:
UnknownHostException
-
isKerberosAuth
protected final boolean isKerberosAuth() -
getServerPrincipals
- Throws:
IOException
-
randomSelect
-
chooseServerPrincipal
protected final String chooseServerPrincipal(Set<String> arg0, org.apache.hadoop.hbase.ipc.Call arg1) throws SaslException - Throws:
SaslException
-
saslNegotiationDone
-
remoteId
public org.apache.hadoop.hbase.ipc.ConnectionId remoteId() -
getLastTouched
public long getLastTouched() -
setLastTouched
public void setLastTouched(long arg0) -
createSecurityPreambleCall
protected final org.apache.hadoop.hbase.ipc.Call createSecurityPreambleCall(org.apache.hbase.thirdparty.com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.ipc.Call> arg0) -
readResponse
<T extends InputStream & DataInput> void readResponse(T arg0, Map<Integer, org.apache.hadoop.hbase.ipc.Call> arg1, org.apache.hadoop.hbase.ipc.Call arg2, Consumer<org.apache.hadoop.ipc.RemoteException> arg3) throws IOException- Throws:
IOException
-