org.apache.hadoop.ipc
Class Server.Connection

java.lang.Object
  extended by org.apache.hadoop.ipc.Server.Connection
Enclosing class:
Server

public class Server.Connection
extends Object

Reads calls from a connection and queues them for handling.


Field Summary
 UserGroupInformation attemptingUser
           
 
Constructor Summary
Server.Connection(SelectionKey key, SocketChannel channel, long lastContact)
           
 
Method Summary
 String getHostAddress()
           
 InetAddress getHostInetAddress()
           
 long getLastContact()
           
 int readAndProcess()
           
 void setLastContact(long lastContact)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

attemptingUser

public UserGroupInformation attemptingUser
Constructor Detail

Server.Connection

public Server.Connection(SelectionKey key,
                         SocketChannel channel,
                         long lastContact)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getHostAddress

public String getHostAddress()

getHostInetAddress

public InetAddress getHostInetAddress()

setLastContact

public void setLastContact(long lastContact)

getLastContact

public long getLastContact()

readAndProcess

public int readAndProcess()
                   throws IOException,
                          InterruptedException
Throws:
IOException
InterruptedException


Copyright © 2009 The Apache Software Foundation