voldemort.server.socket
Class SocketServerSession

java.lang.Object
  extended by voldemort.server.socket.SocketServerSession
All Implemented Interfaces:
java.lang.Runnable

public class SocketServerSession
extends java.lang.Object
implements java.lang.Runnable

Represents a session of interaction between the server and the client. This begins with protocol negotiation and then a seriest of client requests followed by server responses. The negotiation is handled by the session object, which will choose an appropriate request handler to handle the actual request/response.


Constructor Summary
SocketServerSession(java.util.Map<java.lang.Long,SocketServerSession> activeSessions, java.net.Socket socket, RequestHandlerFactory handlerFactory, long id)
           
 
Method Summary
 void close()
           
 java.net.Socket getSocket()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketServerSession

public SocketServerSession(java.util.Map<java.lang.Long,SocketServerSession> activeSessions,
                           java.net.Socket socket,
                           RequestHandlerFactory handlerFactory,
                           long id)
Method Detail

getSocket

public java.net.Socket getSocket()

run

public void run()
Specified by:
run in interface java.lang.Runnable

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu