protected class HBaseServer.Connection extends Object
Modifier and Type | Field and Description |
---|---|
protected SocketChannel |
channel |
protected boolean |
closed |
protected String |
hostAddress |
protected int |
remotePort |
protected LinkedList<HBaseServer.Call> |
responseQueue |
protected Socket |
socket |
protected User |
ticket |
Constructor and Description |
---|
HBaseServer.Connection(SocketChannel channel,
long lastContact) |
Modifier and Type | Method and Description |
---|---|
protected void |
close() |
protected void |
decRpcCount() |
String |
getHostAddress() |
long |
getLastContact() |
int |
getRemotePort() |
protected void |
incRpcCount() |
protected void |
processData(byte[] buf) |
int |
readAndProcess() |
void |
setLastContact(long lastContact) |
protected boolean |
timedOut(long currentTime) |
String |
toString() |
protected volatile boolean closed
protected SocketChannel channel
protected final LinkedList<HBaseServer.Call> responseQueue
protected Socket socket
protected String hostAddress
protected int remotePort
protected User ticket
public HBaseServer.Connection(SocketChannel channel, long lastContact)
public String getHostAddress()
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 processData(byte[] buf) throws IOException, InterruptedException
IOException
InterruptedException
protected void close()
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.