public class ModelServer
extends java.lang.Object
| Constructor and Description |
|---|
ModelServer(ConfigManager configManager)
Creates a new
ModelServer instance. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRunning()
Return if the server is running.
|
static void |
main(java.lang.String[] args)
The entry point for the model server.
|
java.util.List<io.netty.channel.ChannelFuture> |
start()
Main Method that prepares the future for the channel and sets up the ServerBootstrap.
|
void |
startAndWait()
Starts the model server and block until server stops.
|
void |
stop()
Stops the model server.
|
public ModelServer(ConfigManager configManager)
ModelServer instance.configManager - the model server configurationpublic static void main(java.lang.String[] args)
args - the command line argumentspublic void startAndWait()
throws java.lang.InterruptedException,
java.io.IOException,
java.security.GeneralSecurityException
java.lang.InterruptedException - if interruptedjava.io.IOException - if failed to start socket listenerjava.security.GeneralSecurityException - if failed to read SSL certificatepublic java.util.List<io.netty.channel.ChannelFuture> start()
throws java.lang.InterruptedException,
java.io.IOException,
java.security.GeneralSecurityException
java.lang.InterruptedException - if interruptedjava.io.IOException - if failed to start socket listenerjava.security.GeneralSecurityException - if failed to read SSL certificatepublic boolean isRunning()
true if the server is runningpublic void stop()