|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
ittp.Server
The main entry to the ITTP Server Create the different a new socket for each request from a new client.
Control
Field Summary | |
(package private) java.lang.ThreadGroup |
threadGroup
the whole connect thread |
static double |
VERSION
Current version of the server |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Method Summary | |
static Server |
getInstance()
Accesor for the one and only one server instance |
static java.net.InetAddress |
getIP()
Accesor for the one and only one server instance |
static Parameters |
getParameters()
accessor to the object parameter |
static void |
logInfo(java.io.PrintStream std,
java.lang.String message)
Redirect the different messages generated during the execution of the different thread to different file according to if we have an error's message or an information's message. |
static void |
main(java.lang.String[] args)
The main method of the server. |
void |
run()
Accepts new client connections. |
static void |
usage()
Method explaining to the user the operating of the several options. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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 double VERSION
java.lang.ThreadGroup threadGroup
Method Detail |
public static Parameters getParameters()
public static Server getInstance()
public static java.net.InetAddress getIP()
public static void usage()
public static void main(java.lang.String[] args)
args
- the command line argumentspublic void run()
public static void logInfo(java.io.PrintStream std, java.lang.String message)
message
- String containing the error message denerated by the server.std
- Stream into witch the message is written
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |