|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
edu.jas.util.DistHashTableServer<K>
public class DistHashTableServer<K>
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.DHTBroadcaster<K>> |
servers
|
protected java.util.SortedMap<K,DHTTransport> |
theList
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
DistHashTableServer()
Constructs a new DistHashTableServer. |
|
DistHashTableServer(ChannelFactory cf)
DistHashTableServer. |
|
DistHashTableServer(int port)
DistHashTableServer. |
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. |
java.lang.String |
toString()
toString. |
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, 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.DHTBroadcaster<K>> servers
protected final java.util.SortedMap<K,DHTTransport> theList
Constructor Detail |
---|
public DistHashTableServer()
public DistHashTableServer(int port)
port
- to run server on.public DistHashTableServer(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.Runnable
run
in class java.lang.Thread
public void terminate()
public int size()
public java.lang.String toString()
toString
in class java.lang.Thread
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |