Modifier and Type | Field and Description |
---|---|
private InetAddress |
addr |
org.apache.hadoop.security.UserGroupInformation |
attemptingUser |
private boolean |
authenticatedWithFallback |
private RpcServer.Call |
authFailedCall |
private ByteArrayOutputStream |
authFailedResponse |
private AuthMethod |
authMethod |
private static int |
AUTHORIZATION_FAILED_CALLID |
protected SocketChannel |
channel |
private Codec |
codec
Codec the client asked use.
|
private org.apache.hadoop.io.compress.CompressionCodec |
compressionCodec
Compression codec the client asked us use.
|
(package private) org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader |
connectionHeader |
private boolean |
connectionHeaderRead |
private boolean |
connectionPreambleRead |
private ByteBuffer |
data |
private ByteBuffer |
dataLengthBuffer |
protected String |
hostAddress |
private long |
lastContact |
private ByteBuffer |
preambleBuffer |
protected int |
remotePort |
protected ConcurrentLinkedDeque<RpcServer.Call> |
responseQueue |
private Lock |
responseWriteLock |
private boolean |
retryImmediatelySupported |
private Counter |
rpcCount |
private static int |
SASL_CALLID |
private RpcServer.Call |
saslCall |
private boolean |
saslContextEstablished |
(package private) SaslServer |
saslServer |
(package private) com.google.protobuf.BlockingService |
service |
private boolean |
skipInitialSaslHandshake |
protected Socket |
socket |
protected org.apache.hadoop.security.UserGroupInformation |
ugi |
private ByteBuffer |
unwrappedData |
private ByteBuffer |
unwrappedDataLengthBuffer |
protected User |
user |
(package private) boolean |
useSasl |
private boolean |
useWrap |
Constructor and Description |
---|
RpcServer.Connection(SocketChannel channel,
long lastContact) |
Modifier and Type | Method and Description |
---|---|
private boolean |
authorizeConnection() |
protected void |
close() |
private org.apache.hadoop.security.UserGroupInformation |
createUser(org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader head) |
protected void |
decRpcCount() |
private void |
disposeSasl() |
private int |
doBadPreambleHandling(String msg) |
private int |
doBadPreambleHandling(String msg,
Exception e) |
private void |
doRawSaslReply(SaslStatus status,
org.apache.hadoop.io.Writable rv,
String errorClass,
String error)
No protobuf encoding of raw sasl messages
|
private org.apache.hadoop.security.UserGroupInformation |
getAuthorizedUgi(String authorizedId) |
private String |
getFatalConnectionString(int version,
byte authByte) |
String |
getHostAddress() |
InetAddress |
getHostInetAddress() |
int |
getRemotePort() |
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.VersionInfo |
getVersionInfo() |
protected void |
incRpcCount() |
private boolean |
isIdle() |
private void |
process()
Process the data buffer and clean the connection state for the next call.
|
private void |
processConnectionHeader(byte[] buf) |
private void |
processOneRpc(byte[] buf) |
protected void |
processRequest(byte[] buf) |
private void |
processUnwrappedData(byte[] inBuf) |
private int |
read4Bytes() |
int |
readAndProcess()
Read off the wire.
|
private int |
readPreamble() |
private void |
saslReadAndProcess(byte[] saslToken) |
void |
setLastContact(long lastContact) |
private void |
setupCellBlockCodecs(org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader header)
Set up cell block codecs
|
protected boolean |
timedOut(long currentTime) |
String |
toString() |
private boolean connectionPreambleRead
private boolean connectionHeaderRead
protected SocketChannel channel
private ByteBuffer data
private ByteBuffer dataLengthBuffer
private ByteBuffer preambleBuffer
protected final ConcurrentLinkedDeque<RpcServer.Call> responseQueue
private final Lock responseWriteLock
private Counter rpcCount
private long lastContact
private InetAddress addr
protected Socket socket
protected String hostAddress
protected int remotePort
org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader connectionHeader
private Codec codec
private org.apache.hadoop.io.compress.CompressionCodec compressionCodec
com.google.protobuf.BlockingService service
private AuthMethod authMethod
private boolean saslContextEstablished
private boolean skipInitialSaslHandshake
private ByteBuffer unwrappedData
private ByteBuffer unwrappedDataLengthBuffer
boolean useSasl
SaslServer saslServer
private boolean useWrap
private static final int AUTHORIZATION_FAILED_CALLID
private final RpcServer.Call authFailedCall
private ByteArrayOutputStream authFailedResponse
private static final int SASL_CALLID
private final RpcServer.Call saslCall
private boolean authenticatedWithFallback
private boolean retryImmediatelySupported
public org.apache.hadoop.security.UserGroupInformation attemptingUser
protected User user
protected org.apache.hadoop.security.UserGroupInformation ugi
public RpcServer.Connection(SocketChannel channel, long lastContact)
public String getHostAddress()
public InetAddress getHostInetAddress()
public int getRemotePort()
public void setLastContact(long lastContact)
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.VersionInfo getVersionInfo()
private boolean isIdle()
protected void decRpcCount()
protected void incRpcCount()
protected boolean timedOut(long currentTime)
private org.apache.hadoop.security.UserGroupInformation getAuthorizedUgi(String authorizedId) throws IOException
IOException
private void saslReadAndProcess(byte[] saslToken) throws IOException, InterruptedException
IOException
InterruptedException
private void doRawSaslReply(SaslStatus status, org.apache.hadoop.io.Writable rv, String errorClass, String error) throws IOException
IOException
private void disposeSasl()
private int readPreamble() throws IOException
IOException
private int read4Bytes() throws IOException
IOException
public int readAndProcess() throws IOException, InterruptedException
IOException
InterruptedException
private void process() throws IOException, InterruptedException
IOException
InterruptedException
private String getFatalConnectionString(int version, byte authByte)
private int doBadPreambleHandling(String msg) throws IOException
IOException
private int doBadPreambleHandling(String msg, Exception e) throws IOException
IOException
private void processConnectionHeader(byte[] buf) throws IOException
IOException
private void setupCellBlockCodecs(org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader header) throws FatalConnectionException
FatalConnectionException
private void processUnwrappedData(byte[] inBuf) throws IOException, InterruptedException
IOException
InterruptedException
private void processOneRpc(byte[] buf) throws IOException, InterruptedException
IOException
InterruptedException
protected void processRequest(byte[] buf) throws IOException, InterruptedException
buf
- Has the request header and the request param and optionally encoded data buffer
all in this one array.IOException
InterruptedException
private boolean authorizeConnection() throws IOException
IOException
protected void close()
private org.apache.hadoop.security.UserGroupInformation createUser(org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader head)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.