org.apache.vinci.transport
Class BaseServerRunnable

java.lang.Object
  extended by org.apache.vinci.transport.BaseServerRunnable
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
VinciServerRunnable

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

Runnable class used by BaseServer to concurrently service requests.


Constructor Summary
BaseServerRunnable(java.net.Socket c, BaseServer p)
           
 
Method Summary
protected  BaseServer getParent()
           
static java.net.Socket getSocket()
          Allows anyone in the calling chain of the 'run' method to get access to the socket being used in the Vinci connection via the ThreadLocal variable.
 Transportable handleHeader(KeyValuePair header)
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseServerRunnable

public BaseServerRunnable(java.net.Socket c,
                          BaseServer p)
Method Detail

getSocket

public static java.net.Socket getSocket()
Allows anyone in the calling chain of the 'run' method to get access to the socket being used in the Vinci connection via the ThreadLocal variable.


getParent

protected BaseServer getParent()

run

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

handleHeader

public Transportable handleHeader(KeyValuePair header)


Copyright © 2010 The Apache Software Foundation. All Rights Reserved.