org.apache.avalon.cornerstone.blocks.connection
Class ConnectionRunner

java.lang.Object
  extended by org.apache.avalon.cornerstone.blocks.connection.ConnectionRunner
All Implemented Interfaces:
java.lang.Runnable

 class ConnectionRunner
extends java.lang.Object
implements java.lang.Runnable


Field Summary
private  boolean m_finished
           
private  org.apache.avalon.cornerstone.services.connection.ConnectionHandlerFactory m_handlerFactory
           
private  java.util.List m_runners
           
private  java.net.Socket m_socket
           
private  java.lang.Thread m_thread
           
private  ConnectionMonitor monitor
           
 
Constructor Summary
ConnectionRunner(java.net.Socket socket, java.util.List runners, org.apache.avalon.cornerstone.services.connection.ConnectionHandlerFactory handlerFactory, ConnectionMonitor monitor)
           
 
Method Summary
private  void debugBanner(boolean starting)
          Print out debug banner indicating that handling of a connection is starting or ending.
 void dispose()
           
 void run()
           
private  void shutdownSocket()
          Utility method for shutting down associated socket.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_socket

private java.net.Socket m_socket

m_thread

private java.lang.Thread m_thread

m_runners

private java.util.List m_runners

m_handlerFactory

private org.apache.avalon.cornerstone.services.connection.ConnectionHandlerFactory m_handlerFactory

monitor

private ConnectionMonitor monitor

m_finished

private boolean m_finished
Constructor Detail

ConnectionRunner

ConnectionRunner(java.net.Socket socket,
                 java.util.List runners,
                 org.apache.avalon.cornerstone.services.connection.ConnectionHandlerFactory handlerFactory,
                 ConnectionMonitor monitor)
Method Detail

dispose

public void dispose()
             throws java.lang.Exception
Throws:
java.lang.Exception

run

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

debugBanner

private void debugBanner(boolean starting)
Print out debug banner indicating that handling of a connection is starting or ending.

Parameters:
starting - true if starting, false othrewise

shutdownSocket

private void shutdownSocket()
Utility method for shutting down associated socket.