Modifier and Type | Field and Description |
---|---|
UserGroupInformation |
attemptingUser |
protected SocketChannel |
channel |
protected String |
hostAddress |
protected int |
remotePort |
protected ConcurrentLinkedDeque<org.apache.hadoop.hbase.ipc.RpcServer.Call> |
responseQueue |
protected Socket |
socket |
protected UserGroupInformation |
user |
Constructor and Description |
---|
Connection(SocketChannel channel,
long lastContact) |
Modifier and Type | Method and Description |
---|---|
protected void |
close() |
protected void |
decRpcCount() |
String |
getHostAddress() |
InetAddress |
getHostInetAddress() |
int |
getRemotePort() |
RPCProtos.VersionInfo |
getVersionInfo() |
protected void |
incRpcCount() |
protected void |
processRequest(byte[] buf) |
int |
readAndProcess()
Read off the wire.
|
void |
setLastContact(long lastContact) |
protected boolean |
timedOut(long currentTime) |
String |
toString() |
protected SocketChannel channel
protected final ConcurrentLinkedDeque<org.apache.hadoop.hbase.ipc.RpcServer.Call> responseQueue
protected Socket socket
protected String hostAddress
protected int remotePort
protected UserGroupInformation user
public UserGroupInformation attemptingUser
public Connection(SocketChannel channel, long lastContact)
public String getHostAddress()
public InetAddress getHostInetAddress()
public int getRemotePort()
public void setLastContact(long lastContact)
public RPCProtos.VersionInfo getVersionInfo()
protected void decRpcCount()
protected void incRpcCount()
protected boolean timedOut(long currentTime)
public int readAndProcess() 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
protected void close()