|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
edu.jas.util.DistributedListServer
public class DistributedListServer
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 | |
|---|---|
DistributedListServer()
Constructs a new DistributedListServer |
|
DistributedListServer(edu.unima.ky.parallel.ChannelFactory cf)
|
|
DistributedListServer(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 |
|---|
public static final int DEFAULT_PORT
protected final edu.unima.ky.parallel.ChannelFactory cf
protected java.util.List servers
protected final java.util.SortedMap theList
| Constructor Detail |
|---|
public DistributedListServer()
public DistributedListServer(int port)
public DistributedListServer(edu.unima.ky.parallel.ChannelFactory cf)
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public void init()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void terminate()
public int size()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||