Class JWSServer
java.lang.Object
JWSServer
class JWSServer
- extends java.lang.Object
Implementation backend class of the JWS.
JWSServer needs to be a different class than JWS because of issues
arising from the static-ness of main(). I even tried making JWSServer
an inner class within JWS, but javac still complained.
Method Summary |
void |
RunServer()
Inits and runs the server. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WORKERPOOL_MINTHREADS
private final int WORKERPOOL_MINTHREADS
- See Also:
- Constant Field Values
WORKERPOOL_MAXTHREADS
private final int WORKERPOOL_MAXTHREADS
- See Also:
- Constant Field Values
WORKERPOOL_KEEPALIVETIME_SECS
private final int WORKERPOOL_KEEPALIVETIME_SECS
- See Also:
- Constant Field Values
WORKERPOOL_TASKQ_MAXSIZE
private final int WORKERPOOL_TASKQ_MAXSIZE
- See Also:
- Constant Field Values
JWS_LISTEN_PORT
private final int JWS_LISTEN_PORT
- See Also:
- Constant Field Values
JWSServer
JWSServer()
RunServer
public void RunServer()
- Inits and runs the server.
After initing all necessary data structures and worker threads,
this method continuously accepts connections on port 8080, putting
accepted connections into the work queue.