org.mbari.siam.core
Class RemoteSerialPortServer

java.lang.Object
  extended by java.lang.Thread
      extended by org.mbari.siam.core.RemoteSerialPortServer
All Implemented Interfaces:
java.lang.Runnable

public class RemoteSerialPortServer
extends java.lang.Thread

Base class for thread which implements remote control of serial port


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static int _DEFAULT_TIMEOUT
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
RemoteSerialPortServer(InstrumentPort instPort)
           
RemoteSerialPortServer(InstrumentPort instPort, DeviceService deviceService)
           
RemoteSerialPortServer(InstrumentPort instPort, int sockPort)
           
 
Method Summary
 java.net.InetAddress getServerInetAddress()
           
 int getServerPort()
           
 int getTimeout()
           
 void run()
          Wait for and accept new client connection.
 void setTimeout(int timeout)
           
 void shutdown()
           
 
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

_DEFAULT_TIMEOUT

public static final int _DEFAULT_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

RemoteSerialPortServer

public RemoteSerialPortServer(InstrumentPort instPort,
                              int sockPort)
                       throws java.io.IOException
Throws:
java.io.IOException

RemoteSerialPortServer

public RemoteSerialPortServer(InstrumentPort instPort)
                       throws java.io.IOException
Throws:
java.io.IOException

RemoteSerialPortServer

public RemoteSerialPortServer(InstrumentPort instPort,
                              DeviceService deviceService)
                       throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getServerPort

public int getServerPort()

getServerInetAddress

public java.net.InetAddress getServerInetAddress()
                                          throws java.net.UnknownHostException
Throws:
java.net.UnknownHostException

getTimeout

public int getTimeout()

setTimeout

public void setTimeout(int timeout)
                throws RangeException
Throws:
RangeException

shutdown

public void shutdown()

run

public void run()
Wait for and accept new client connection.

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.