org.codehaus.aspectwerkz.connectivity
Class RemoteProxyServerThread

java.lang.Object
  extended byorg.codehaus.aspectwerkz.connectivity.RemoteProxyServerThread
All Implemented Interfaces:
Runnable

public class RemoteProxyServerThread
extends Object
implements Runnable

Implements a server thread. Each request from the client gets its own instance.

Response to three different commands:
Command.CREATE, Command.INVOKE and Command.CLOSE.

It redirects the method invocation to the Invoker for the class.

Author:
Jonas Bonér

Constructor Summary
RemoteProxyServerThread(Socket clientSocket, ClassLoader loader, Invoker invoker, int timeout)
          Creates a new instance.
 
Method Summary
 void run()
          Does the actual work of serving the client.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteProxyServerThread

public RemoteProxyServerThread(Socket clientSocket,
                               ClassLoader loader,
                               Invoker invoker,
                               int timeout)
Creates a new instance.

Parameters:
clientSocket - the client socket
loader - the classloader to use
invoker - the invoker that makes the method invocation in the client thread
Method Detail

run

public void run()
Does the actual work of serving the client.

Specified by:
run in interface Runnable


Copyright © 2002-2004 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.