|
|||||||||
| 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 ChannelFactory |
cf
|
static int |
DEFAULT_PORT
|
protected java.util.List<edu.jas.util.Broadcaster> |
servers
|
protected java.util.SortedMap<edu.jas.util.Counter,java.lang.Object> |
theList
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
DistributedListServer()
Constructs a new DistributedListServer. |
|
DistributedListServer(ChannelFactory cf)
DistributedListServer. |
|
DistributedListServer(int port)
DistributedListServer. |
|
| Method Summary | |
|---|---|
void |
init()
thread initialization and start. |
static void |
main(java.lang.String[] args)
main. |
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 ChannelFactory cf
protected java.util.List<edu.jas.util.Broadcaster> servers
protected final java.util.SortedMap<edu.jas.util.Counter,java.lang.Object> theList
| Constructor Detail |
|---|
public DistributedListServer()
public DistributedListServer(int port)
port - to run server on.public DistributedListServer(ChannelFactory cf)
cf - ChannelFactory to use.| 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 | ||||||||