org.mbari.siam.distributed
Class DevicePacketServerThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.mbari.siam.distributed.DevicePacketServerThread
All Implemented Interfaces:
java.lang.Runnable

public class DevicePacketServerThread
extends java.lang.Thread

Base class for thread which accepts DevicePacketStream client connections.

Author:
Tom O'Reilly

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 java.util.Vector _clients
          Vector of DevicePacketOutputStream objects.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DevicePacketServerThread(int port)
          Construct DevicePacketServerThread; create encapsulated server socket.
 
Method Summary
 void run()
          Wait for and accept new client connection; add new client to list of clients.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_clients

public java.util.Vector _clients
Vector of DevicePacketOutputStream objects.

Constructor Detail

DevicePacketServerThread

public DevicePacketServerThread(int port)
                         throws java.io.IOException
Construct DevicePacketServerThread; create encapsulated server socket.

Throws:
java.io.IOException
Method Detail

run

public void run()
Wait for and accept new client connection; add new client to list of clients.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.