com.retrogui.dualrpc.client
Class DualRpcClientDispatcher

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.retrogui.dualrpc.client.DualRpcClientDispatcher
All Implemented Interfaces:
IDualRpcMessageConstants, IRpcMessageDispatcher, java.lang.Runnable

public class DualRpcClientDispatcher
extends java.lang.Thread
implements IRpcMessageDispatcher, IDualRpcMessageConstants

Dispatcher for incoming rpc messages. Each incoming message is handed off to a newly spawned worker thread.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Fields inherited from interface com.retrogui.dualrpc.common.IDualRpcMessageConstants
DEFAULT_RPC_CALL_TIMEOUT, PAYLOAD_TYPE_RPC_CALL, PAYLOAD_TYPE_RPC_FAULT, PAYLOAD_TYPE_RPC_RESULT, RPC_FAULTCODE_EXCEPTION
 
Constructor Summary
DualRpcClientDispatcher(DualRpcClient dualRpcClient)
          Creates a new DualRpcClientDispatcher object.
 
Method Summary
 java.util.Hashtable getCallWaitingRegistry()
          get the call waiting registry required by IRpcWorker interface
 IRpcHandler getHandler(java.lang.String handlerClassname)
          get a handler.
 IMethodAccessControl getMethodAccessControl()
          Get the method access control object.
 java.lang.String getNextMessageId()
          increments and returns message sequence, required by IRpcMessageDispatcher interface
 Session getSession()
          get the session, required by IRpcMessageDispatcher interface
 void run()
          main dispatcher loop
 
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, 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

DualRpcClientDispatcher

public DualRpcClientDispatcher(DualRpcClient dualRpcClient)
Creates a new DualRpcClientDispatcher object.

Parameters:
dualRpcClient -
Method Detail

run

public void run()
main dispatcher loop

Specified by:
run in interface java.lang.Runnable

getCallWaitingRegistry

public java.util.Hashtable getCallWaitingRegistry()
get the call waiting registry required by IRpcWorker interface

Specified by:
getCallWaitingRegistry in interface IRpcMessageDispatcher
Returns:

getNextMessageId

public java.lang.String getNextMessageId()
increments and returns message sequence, required by IRpcMessageDispatcher interface

Specified by:
getNextMessageId in interface IRpcMessageDispatcher
Returns:

getHandler

public IRpcHandler getHandler(java.lang.String handlerClassname)
get a handler. required by IRpcMessageDispatcher interface

Specified by:
getHandler in interface IRpcMessageDispatcher
Parameters:
handlerClassname -
Returns:

getSession

public Session getSession()
get the session, required by IRpcMessageDispatcher interface

Specified by:
getSession in interface IRpcMessageDispatcher
Returns:

getMethodAccessControl

public IMethodAccessControl getMethodAccessControl()
Get the method access control object. required by IRpcMessageDispatcher interface

Specified by:
getMethodAccessControl in interface IRpcMessageDispatcher
Returns:
IMethodAccessControl