org.mbari.siam.tests.linkBenchmark2.server
Class BenchmarkServer

java.lang.Object
  extended by java.lang.Thread
      extended by org.mbari.siam.tests.linkBenchmark2.server.BenchmarkServer
All Implemented Interfaces:
java.lang.Runnable

public class BenchmarkServer
extends java.lang.Thread

BenchmarkServer is the server side of the DeviceLog benchmark test using sockets rather than RMI. It fields requests from SocketBenchmarkProxy on the client side.

Author:
Bob Herlien

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  DeviceLog _log
          DeviceLog that we're going to get data from
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
BenchmarkServer(int port)
           
 
Method Summary
protected  java.lang.String className()
           
static void main(java.lang.String[] args)
           
 void run()
          Wait for and accept new client connection.
 
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

_log

protected DeviceLog _log
DeviceLog that we're going to get data from

Constructor Detail

BenchmarkServer

public BenchmarkServer(int port)
                throws java.io.IOException
Throws:
java.io.IOException
Method Detail

className

protected java.lang.String className()

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

main

public static void main(java.lang.String[] args)


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.