2.17.2: 2011-06-17

net.sf.basedb.util.jobagent
Class JobAgentServerConnection.ListenerThread

java.lang.Object
  extended by net.sf.basedb.util.jobagent.JobAgentServerConnection.ListenerThread
All Implemented Interfaces:
Runnable
Enclosing class:
JobAgentServerConnection

private static class JobAgentServerConnection.ListenerThread
extends Object
implements Runnable

This class is used for listening to the specified socket for incoming connections. Each request is forwarded to the RequestHandler in a separate thread.


Field Summary
private  Logger logger
           
private  RequestHandler requestHandler
           
private  ServerSocketChannel socket
           
 
Constructor Summary
private JobAgentServerConnection.ListenerThread(ServerSocketChannel socket, RequestHandler requestHandler, Logger logger)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

socket

private final ServerSocketChannel socket

requestHandler

private final RequestHandler requestHandler

logger

private final Logger logger
Constructor Detail

JobAgentServerConnection.ListenerThread

private JobAgentServerConnection.ListenerThread(ServerSocketChannel socket,
                                                RequestHandler requestHandler,
                                                Logger logger)
Method Detail

run

public void run()
Specified by:
run in interface Runnable

2.17.2: 2011-06-17