org.openware.jdf.server
Class WorkerThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.openware.jdf.server.WorkerThread
All Implemented Interfaces:
JDFServerConstants, java.lang.Runnable

public class WorkerThread
extends java.lang.Thread
implements JDFServerConstants

Thread that handles remote method invocations. Each remote method call results in one of these threads being woken up to handle the invocation.

Author:
Vincent Sheffer

Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Fields inherited from interface org.openware.jdf.server.JDFServerConstants
CREATE_METHOD_INDEX, FORWARD_METHOD_INDEX, JDFSERVER_METHOD_INDEX_BASE, MOVETO_METHOD_INDEX, SERVER_OID, SET_TIMEOUT_METHOD_INDEX
 
Constructor Summary
WorkerThread(ThreadPool threadPool, java.util.Hashtable objectTable)
           
 
Method Summary
 boolean isDead()
           
 void processSocket()
          This does the actual work of invoking the method.
 void run()
           
 void setDead(boolean dead)
           
 void setSocket(java.net.Socket sock)
           
 void waitToRun()
           
 void wakeUp(java.net.Socket sock)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, 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

WorkerThread

public WorkerThread(ThreadPool threadPool,
                    java.util.Hashtable objectTable)
Method Detail

setSocket

public void setSocket(java.net.Socket sock)

isDead

public boolean isDead()

setDead

public void setDead(boolean dead)

processSocket

public void processSocket()
                   throws JDFProtocolException
This does the actual work of invoking the method.

waitToRun

public void waitToRun()

wakeUp

public void wakeUp(java.net.Socket sock)

run

public void run()
Overrides:
run in class java.lang.Thread


Copyright © 2000, 2001 Openware, Spin Software. All Rights Reserved.