Modifier and Type | Field and Description |
---|---|
org.apache.hadoop.security.UserGroupInformation |
attemptingUser |
protected SocketChannel |
channel |
protected String |
hostAddress |
protected int |
remotePort |
protected ConcurrentLinkedDeque<RpcServer.Call> |
responseQueue |
protected Socket |
socket |
protected org.apache.hadoop.security.UserGroupInformation |
user |
Constructor and Description |
---|
RpcServer.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<RpcServer.Call> responseQueue
protected Socket socket
protected String hostAddress
protected int remotePort
protected org.apache.hadoop.security.UserGroupInformation user
public org.apache.hadoop.security.UserGroupInformation attemptingUser
public RpcServer.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()
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.