voldemort.server.socket
Class SocketServerSession
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SocketServerSession
public SocketServerSession(java.util.Map<java.lang.Long,SocketServerSession> activeSessions,
java.net.Socket socket,
RequestHandlerFactory handlerFactory,
long id)
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