Class JWSServer

java.lang.Object
  extended by 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.


Field Summary
private  int JWS_LISTEN_PORT
           
private  int WORKERPOOL_KEEPALIVETIME_SECS
           
private  int WORKERPOOL_MAXTHREADS
           
private  int WORKERPOOL_MINTHREADS
           
private  int WORKERPOOL_TASKQ_MAXSIZE
           
 
Constructor Summary
JWSServer()
           
 
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
 

Field Detail

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
Constructor Detail

JWSServer

JWSServer()
Method Detail

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.