JanosVM v1.0 API

edu.utah.janosvm.kit.comm.jsi
Class JSIHandlerThread

java.lang.Object
  |
  +--edu.utah.janosvm.kit.comm.jsi.JSIHandlerThread
All Implemented Interfaces:
java.lang.Runnable

public abstract class JSIHandlerThread
extends java.lang.Object
implements java.lang.Runnable

Runnable used to dispatch and reply to messages received over a given JSIChannel.


Field Summary
private  JSIChannel jc
          The JSIChannel that should be used for all communication.
private  JSIHandlerRoot jhr
          The JSIHandlerRoot that should be the root for dispatching messages.
 
Constructor Summary
JSIHandlerThread(JSIChannel jc)
          Construct a JSIHandlerThread that will process the messages received from the given JSIChannel.
JSIHandlerThread(JSIHandlerRoot jhr, JSIChannel jc)
          Construct a JSIHandlerThread that will process the messages received from the given JSIChannel.
 
Method Summary
 JSIChannel getChannel()
           
 JSIHandlerRoot getHandlerRoot()
           
 void run()
           
abstract  void shutdown()
          Call back method used when a SHUTDOWN message is received.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait, wait0
 

Field Detail

jc

private final JSIChannel jc
The JSIChannel that should be used for all communication.

jhr

private final JSIHandlerRoot jhr
The JSIHandlerRoot that should be the root for dispatching messages.
Constructor Detail

JSIHandlerThread

public JSIHandlerThread(JSIHandlerRoot jhr,
                        JSIChannel jc)
Construct a JSIHandlerThread that will process the messages received from the given JSIChannel.
Parameters:
jhr - The JSIHandlerRoot that should be the root for dispatching messages.
jc - A connected JSIChannel.

JSIHandlerThread

public JSIHandlerThread(JSIChannel jc)
Construct a JSIHandlerThread that will process the messages received from the given JSIChannel.
Parameters:
jc - A connected JSIChannel.
Method Detail

getHandlerRoot

public JSIHandlerRoot getHandlerRoot()
Returns:
The JSIHandlerRoot that should be the root for dispatching messages.

getChannel

public JSIChannel getChannel()
Returns:
The JSIChannel that should be used for all communication.

shutdown

public abstract void shutdown()
Call back method used when a SHUTDOWN message is received.

run

public void run()
Specified by:
run in interface java.lang.Runnable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

JanosVM v1.0 API

This documentation is Copyright (C) 2000-2003 The University of Utah. All Rights Reserved. See the documentation license for distribution terms and restrictions.
Documentation, software, and mailing lists for the JanosVM can be found at the Janos Project web page: http://www.cs.utah.edu/flux/janos/
Generated on Feb 13, 2003