public class Server
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
Server(java.lang.String node,
int port,
EventQueue queue,
DataMap map,
Workers workers)
Initialization
|
Modifier and Type | Method and Description |
---|---|
void |
run()
The overridden run function for receiving
data from clients
|
void |
start()
Start the server
|
void |
stop()
Stop the server.
|
public Server(java.lang.String node, int port, EventQueue queue, DataMap map, Workers workers) throws java.lang.Exception
node
- the hostport
- the portqueue
- the EventQueuemap
- the DataMapworkers
- the Workersjava.lang.Exception