Constructor and Description |
---|
PolyglotServer(String filename)
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
loadConfiguration(String filename)
Initialize based on parameters within the given configuration file.
|
static void |
main(String[] args)
A main for the Polyglot service.
|
void |
run()
Process Polyglot requests.
|
void |
serveConnection(int session,
Socket client_socket)
Process requests from the given connection.
|
void |
stop()
Stop the Polyglot server.
|
void |
waitUntilStopped()
Wait until the servers main thread stops.
|
public PolyglotServer(String filename)
filename
- the file name of a configuration filepublic void loadConfiguration(String filename)
filename
- the file name of the configuration filepublic void serveConnection(int session, Socket client_socket)
session
- the session id for this connectionclient_socket
- the connection to servepublic void waitUntilStopped()
public void stop()
public static void main(String[] args)
args
- command line argumentsCopyright © 2017. All rights reserved.