|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectssbm.net.server.ServerEndpoint
public class ServerEndpoint
Questa classe si occupa di accettare le connessioni provenienti dai client e di avviare i thread per la gestione di tali connessioni.
Field Summary | |
---|---|
private static int |
LISTENING_PORT
La porta d'ascolto del server |
private static short |
THREAD_MULTIPLIER
Il fattore moltiplicativo del numero di processori disponibili (determina la dimensione del pool di thread). |
Constructor Summary | |
---|---|
ServerEndpoint()
|
Method Summary | |
---|---|
static void |
start()
Costruisce il thread pool e accetta le connessioni in arrivo dai client. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final int LISTENING_PORT
private static final short THREAD_MULTIPLIER
Constructor Detail |
---|
public ServerEndpoint()
Method Detail |
---|
public static void start()
ServerEndpointThread
la cui esecuzione è affidata ad uno dei thread nel pool.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |