edu.jas.util
Class DistHashTableServer

java.lang.Object
  extended by java.lang.Thread
      extended by edu.jas.util.DistHashTableServer
All Implemented Interfaces:
java.lang.Runnable

public class DistHashTableServer
extends java.lang.Thread

Server for the distributed version of a list.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  edu.unima.ky.parallel.ChannelFactory cf
           
static int DEFAULT_PORT
           
protected  java.util.List servers
           
protected  java.util.SortedMap theList
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DistHashTableServer()
          Constructs a new DistHashTableServer
DistHashTableServer(edu.unima.ky.parallel.ChannelFactory cf)
           
DistHashTableServer(int port)
           
 
Method Summary
 void init()
          thread initialization and start
static void main(java.lang.String[] args)
           
 void run()
          main server method
 int size()
          number of servers
 void terminate()
          terminate all servers
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values

cf

protected final edu.unima.ky.parallel.ChannelFactory cf

servers

protected java.util.List servers

theList

protected final java.util.SortedMap theList
Constructor Detail

DistHashTableServer

public DistHashTableServer()
Constructs a new DistHashTableServer


DistHashTableServer

public DistHashTableServer(int port)

DistHashTableServer

public DistHashTableServer(edu.unima.ky.parallel.ChannelFactory cf)
Method Detail

main

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

init

public void init()
thread initialization and start


run

public void run()
main server method

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

terminate

public void terminate()
terminate all servers


size

public int size()
number of servers