org.codehaus.aspectwerkz.connectivity
Class RemoteProxyServerThread
java.lang.Object
org.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 Bonr
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 |
RemoteProxyServerThread
public RemoteProxyServerThread(Socket clientSocket,
ClassLoader loader,
Invoker invoker,
int timeout)
- Creates a new instance.
- Parameters:
clientSocket
- the client socketloader
- the classloader to useinvoker
- the invoker that makes the method invocation in the client thread
run
public void run()
- Does the actual work of serving the client.
- Specified by:
run
in interface Runnable
Copyright © 2002-2005 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.