Modifier and Type | Field and Description |
---|---|
org.apache.hadoop.security.UserGroupInformation |
attemptingUser |
protected SocketChannel |
channel |
protected String |
hostAddress |
protected int |
remotePort |
protected LinkedList<org.apache.hadoop.hbase.ipc.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() |
long |
getLastContact() |
int |
getRemotePort() |
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 LinkedList<org.apache.hadoop.hbase.ipc.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 long getLastContact()
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 © 2014 The Apache Software Foundation. All rights reserved.