org.apache.hadoop.hbase.ipc
Class HBaseServer.Connection
java.lang.Object
org.apache.hadoop.hbase.ipc.HBaseServer.Connection
- Enclosing class:
- HBaseServer
protected class HBaseServer.Connection
- extends Object
Reads calls from a connection and queues them for handling.
closed
protected volatile boolean closed
channel
protected SocketChannel channel
responseQueue
protected final LinkedList<HBaseServer.Call> responseQueue
socket
protected Socket socket
hostAddress
protected String hostAddress
remotePort
protected int remotePort
ticket
protected User ticket
HBaseServer.Connection
public HBaseServer.Connection(SocketChannel channel,
long lastContact)
toString
public String toString()
- Overrides:
toString
in class Object
getHostAddress
public String getHostAddress()
getRemotePort
public int getRemotePort()
setLastContact
public void setLastContact(long lastContact)
getLastContact
public long getLastContact()
decRpcCount
protected void decRpcCount()
incRpcCount
protected void incRpcCount()
timedOut
protected boolean timedOut(long currentTime)
readAndProcess
public int readAndProcess()
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
processData
protected void processData(byte[] buf)
throws IOException,
InterruptedException
- Throws:
IOException
InterruptedException
close
protected void close()
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.