org.apache.hadoop.hbase.ipc
Class HBaseServer.Connection
java.lang.Object
org.apache.hadoop.hbase.ipc.HBaseServer.Connection
- Direct Known Subclasses:
- SecureServer.SecureConnection
- Enclosing class:
- HBaseServer
protected class HBaseServer.Connection
- extends Object
Reads calls from a connection and queues them for handling.
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 © 2012 The Apache Software Foundation. All Rights Reserved.