Class UpdateHandler
java.lang.Object
|
+----java.lang.Thread
|
+----UpdateHandler
- public class UpdateHandler
- extends Thread
Class definition for a thread that reads from a socket and
queues the objects it reads to a processing thread.
- Version:
- $Revision: 1.9 $, $Date: 2000/10/12 14:08:02 $
- Author:
- John Cavanaugh
-
done
- A flag to signal that the thread should terminate.
-
mainThread
- The main processing thread.
-
objStream
- The input object stream.
-
stream
- The original input stream.
-
UpdateHandler(VisiMain, InputStream)
- Constructs a ModelUpdate handler.
-
halt()
- Stops the thread.
-
run()
- Reads objects from the input stream and pass them to the
main processing thread.
-
toString()
- Gets a string describing the update handler.
mainThread
private VisiMain mainThread
- The main processing thread.
stream
private InputStream stream
- The original input stream.
objStream
private ObjectInputStream objStream
- The input object stream.
done
private boolean done
- A flag to signal that the thread should terminate.
UpdateHandler
public UpdateHandler(VisiMain mainThread,
InputStream stream)
- Constructs a ModelUpdate handler.
- Parameters:
- mainThread - the main line processing thread.
- stream - an input stream.
run
public void run()
- Reads objects from the input stream and pass them to the
main processing thread.
- Overrides:
- run in class Thread
halt
public void halt()
- Stops the thread.
toString
public String toString()
- Gets a string describing the update handler.
- Returns:
- a string describing the socket handler object.
- Overrides:
- toString in class Thread