uka.karmi.rmi
Class ExecutionThread

java.lang.Object
  extended byjava.lang.Thread
      extended byuka.karmi.rmi.ExecutionThread
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
StreamServer

public abstract class ExecutionThread
extends java.lang.Thread

Base class for all threads that execute remote methods on the server. Technology implementations must subclass this class and implement an appropriate service() method that unmarshals an technology-dependant invocation header from a connection and invokes ServerConnection.dispatch().

Author:
Bernhard Haumacher, Christian Nester
See Also:
StreamServer.service(uka.karmi.stream.StreamServerConnection), ServerConnection.dispatch(boolean)

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ExecutionThread()
           
 
Method Summary
abstract  java.lang.String getClientHost()
          Returns the remote caller's host name.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExecutionThread

public ExecutionThread()
Method Detail

getClientHost

public abstract java.lang.String getClientHost()
Returns the remote caller's host name. A remote method is executed by an ExecutionThread. If the runtime system calls the getClientHost() method the implementation of ExecutionThread must return the host name of the remote caller of the currently executed remote method.

Returns:
host name of the caller